common: Portability fix for logging.c.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 11 Apr 2017 02:53:52 +0000 (11:53 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 11 Apr 2017 02:53:52 +0000 (11:53 +0900)
* common/logging.c (S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): Avoid
duplicated definition.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
common/logging.c

index 18c40b3..bc5f72b 100644 (file)
 #include "sysutils.h"
 
 #ifdef HAVE_W32_SYSTEM
-# define S_IRGRP S_IRUSR
-# define S_IROTH S_IRUSR
-# define S_IWGRP S_IWUSR
-# define S_IWOTH S_IWUSR
+# ifndef S_IRWXG
+#  define S_IRGRP S_IRUSR
+#  define S_IWGRP S_IWUSR
+# endif
+# ifndef S_IRWXO
+#  define S_IROTH S_IRUSR
+#  define S_IWOTH S_IWUSR
+# endif
 #endif