From: Jim Meyering Date: Thu, 3 Nov 1994 22:03:16 +0000 (+0000) Subject: Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of _IEXEC if they're not X-Git-Tag: cvs-readonly~8820 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=877d4db9954f9f7ad8c2757084b8bb835d50d34f;p=gnulib.git Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of _IEXEC if they're not already defined. Reported by Daniel Hagerty . --- 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