changeset 20035:1b7a4c007e13

Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of _IEXEC if they're not already defined. Reported by Daniel Hagerty <hag@gnu.ai.mit.edu>.
author Jim Meyering <jim@meyering.net>
date Thu, 03 Nov 1994 22:03:16 +0000
parents 1b33b9dba080
children 6dc724b94efb
files lib/euidaccess.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/euidaccess.c	Thu Nov 03 00:58:46 1994 +0000
+++ b/lib/euidaccess.c	Thu Nov 03 22:03:16 1994 +0000
@@ -24,6 +24,18 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#ifdef S_IEXEC
+#ifndef S_IXUSR
+#define S_IXUSR S_IEXEC
+#endif
+#ifndef S_IXGRP
+#define S_IXGRP (S_IEXEC >> 3)
+#endif
+#ifndef S_IXOTH
+#define S_IXOTH (S_IEXEC >> 6)
+#endif
+#endif /* S_IEXEC */
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif