Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of _IEXEC if they're not
authorJim Meyering <jim@meyering.net>
Thu, 3 Nov 1994 22:03:16 +0000 (22:03 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 3 Nov 1994 22:03:16 +0000 (22:03 +0000)
already defined.  Reported by Daniel Hagerty <hag@gnu.ai.mit.edu>.

lib/euidaccess.c

index 1073c97..00d6a95 100644 (file)
 #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