summaryrefslogtreecommitdiff
path: root/src/sys2.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-09-08 09:01:32 +0000
committerJim Meyering <jim@meyering.net>2000-09-08 09:01:32 +0000
commit93fe4a3b72e22a610f27927010da65c1f454ac43 (patch)
tree89a2bd0e3926e2df69755b2bc0775215858acfe7 /src/sys2.h
parent3a66ad8dcd6c6b285616ccf61c7f6359af004dd4 (diff)
downloadcoreutils-93fe4a3b72e22a610f27927010da65c1f454ac43.tar.xz
(S_IRWXUGO): Define here, instead.
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)