about summary refs log tree commit diff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/stat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h
index ec69f54d..5e339d5c 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