diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/compat/fcntl.h | 8 | ||||
| -rw-r--r-- | include/compat/sys/stat.h | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/include/compat/fcntl.h b/include/compat/fcntl.h index feddb7b..7dfedc6 100644 --- a/include/compat/fcntl.h +++ b/include/compat/fcntl.h | |||
| @@ -30,11 +30,3 @@ | |||
| 30 | #ifndef FD_CLOEXEC | 30 | #ifndef FD_CLOEXEC |
| 31 | #define FD_CLOEXEC 1 | 31 | #define FD_CLOEXEC 1 |
| 32 | #endif | 32 | #endif |
| 33 | |||
| 34 | #ifndef S_IRGRP | ||
| 35 | #define S_IRGRP 0 | ||
| 36 | #endif | ||
| 37 | |||
| 38 | #ifndef S_IROTH | ||
| 39 | #define S_IROTH 0 | ||
| 40 | #endif | ||
diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h index 0e04553..629c7fe 100644 --- a/include/compat/sys/stat.h +++ b/include/compat/sys/stat.h | |||
| @@ -8,6 +8,15 @@ | |||
| 8 | 8 | ||
| 9 | #ifndef _MSC_VER | 9 | #ifndef _MSC_VER |
| 10 | #include_next <sys/stat.h> | 10 | #include_next <sys/stat.h> |
| 11 | |||
| 12 | /* for old MinGW */ | ||
| 13 | #ifndef S_IRGRP | ||
| 14 | #define S_IRGRP 0 | ||
| 15 | #endif | ||
| 16 | #ifndef S_IROTH | ||
| 17 | #define S_IROTH 0 | ||
| 18 | #endif | ||
| 19 | |||
| 11 | #else | 20 | #else |
| 12 | 21 | ||
| 13 | #include <windows.h> | 22 | #include <windows.h> |
