aboutsummaryrefslogtreecommitdiff
path: root/include/compat/sys/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat/sys/stat.h')
-rw-r--r--include/compat/sys/stat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h
index 629c7fe..b88da1d 100644
--- a/include/compat/sys/stat.h
+++ b/include/compat/sys/stat.h
@@ -10,9 +10,18 @@
10#include_next <sys/stat.h> 10#include_next <sys/stat.h>
11 11
12/* for old MinGW */ 12/* for old MinGW */
13#ifndef S_IRWXU
14#define S_IRWXU 0
15#endif
16#ifndef S_IRWXG
17#define S_IRWXG 0
18#endif
13#ifndef S_IRGRP 19#ifndef S_IRGRP
14#define S_IRGRP 0 20#define S_IRGRP 0
15#endif 21#endif
22#ifndef S_IRWXO
23#define S_IRWXO 0
24#endif
16#ifndef S_IROTH 25#ifndef S_IROTH
17#define S_IROTH 0 26#define S_IROTH 0
18#endif 27#endif
@@ -65,12 +74,15 @@
65#endif 74#endif
66 75
67#if defined(_MSC_VER) 76#if defined(_MSC_VER)
77# define S_IRWXU 0 /* RWX user */
68# define S_IRUSR S_IREAD /* Read user */ 78# define S_IRUSR S_IREAD /* Read user */
69# define S_IWUSR S_IWRITE /* Write user */ 79# define S_IWUSR S_IWRITE /* Write user */
70# define S_IXUSR 0 /* Execute user */ 80# define S_IXUSR 0 /* Execute user */
81# define S_IRWXG 0 /* RWX group */
71# define S_IRGRP 0 /* Read group */ 82# define S_IRGRP 0 /* Read group */
72# define S_IWGRP 0 /* Write group */ 83# define S_IWGRP 0 /* Write group */
73# define S_IXGRP 0 /* Execute group */ 84# define S_IXGRP 0 /* Execute group */
85# define S_IRWXO 0 /* RWX others */
74# define S_IROTH 0 /* Read others */ 86# define S_IROTH 0 /* Read others */
75# define S_IWOTH 0 /* Write others */ 87# define S_IWOTH 0 /* Write others */
76# define S_IXOTH 0 /* Execute others */ 88# define S_IXOTH 0 /* Execute others */