changeset 344:b7e4185ca15e

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 d586862d3529
children 0dc6bd927a13
files lib/euidaccess.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/euidaccess.c
+++ b/lib/euidaccess.c
@@ -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