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 @@ #ifndef FD_CLOEXEC #define FD_CLOEXEC 1 #endif - -#ifndef S_IRGRP -#define S_IRGRP 0 -#endif - -#ifndef S_IROTH -#define S_IROTH 0 -#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 @@ #ifndef _MSC_VER #include_next + +/* for old MinGW */ +#ifndef S_IRGRP +#define S_IRGRP 0 +#endif +#ifndef S_IROTH +#define S_IROTH 0 +#endif + #else #include