projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01c23d4
)
Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of _IEXEC if they're not
author
Jim Meyering
<jim@meyering.net>
Thu, 3 Nov 1994 22:03:16 +0000
(22:03 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/lib/euidaccess.c
b/lib/euidaccess.c
index 1073c9741e67a2965b64a037d4bff4ea904e3a9e..00d6a956962cb817f5d9d68a1c38fd638587ef85 100644
(file)
--- 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