summaryrefslogtreecommitdiff
path: root/src/sys2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys2.h')
-rw-r--r--src/sys2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index 936fd8afd..93c297d25 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -118,6 +118,10 @@
# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
#endif
+#ifndef S_IRWXUGO
+# define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO)
+#endif
+
/* All the mode bits that can be affected by chmod. */
#define CHMOD_MODE_BITS \
(S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)