diff --git a/include/sys/stat.h b/include/sys/stat.h index ec69f54d8ef975592e041c2a740313f9900acd97..5e339d5caeb05a2bb11debc4810d9115e267b753 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -90,6 +90,12 @@ int utimensat(int, const char *, const struct timespec [2], int); int lchmod(const char *, mode_t); #endif +#ifdef _GNU_SOURCE +#define S_IREAD S_IRUSR +#define S_IWRITE S_IWUSR +#define S_IEXEC S_IXUSR +#endif + #ifdef __cplusplus } #endif