From 877d4db9954f9f7ad8c2757084b8bb835d50d34f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 3 Nov 1994 22:03:16 +0000 Subject: [PATCH] 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(+) 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 -- 2.11.0