void-packages/srcpkgs/libreoffice/files/musl-os_utils_h.patch

19 lines
441 B
Diff
Raw Normal View History

--- src/common/os/os_utils.h 2016-04-14 16:07:29.000000000 +0200
+++ src/common/os/os_utils.h 2017-10-08 22:15:46.091610818 +0200
@@ -34,12 +34,13 @@
#include "../common/StatusArg.h"
#include "../common/classes/array.h"
-#ifdef WIN_NT
#include <sys/stat.h>
+#ifdef WIN_NT
#define mode_t int
#define DEFAULT_OPEN_MODE (_S_IREAD | _S_IWRITE)
-#else
+#endif
+#if !defined(DEFAULT_OPEN_MODE)
#define DEFAULT_OPEN_MODE (0666)
#endif