From 17a29b6eea6539100f722fc37e5bec8aa9b8da0b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 3 Nov 1994 22:03:16 +0000 Subject: Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of _IEXEC if they're not already defined. Reported by Daniel Hagerty . --- lib/euidaccess.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/euidaccess.c') diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 1073c9741..00d6a9569 100644 --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -24,6 +24,18 @@ #include #include +#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 #endif -- cgit v1.2.3-54-g00ecf