# HG changeset patch # User Jim Meyering # Date 783900196 0 # Node ID b7e4185ca15eeebe22a4bd70946fdbf624849e21 # Parent d586862d3529bd01f2c52d24881abfcaec4eea37 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 --- 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