diff options
Diffstat (limited to 'src/stdio/freopen.c')
| -rw-r--r-- | src/stdio/freopen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdio/freopen.c b/src/stdio/freopen.c index cddf296a..69732a48 100644 --- a/src/stdio/freopen.c +++ b/src/stdio/freopen.c @@ -2,7 +2,8 @@ #include "errno.h" #include "nonstd/io.h" -#ifdef _POSIX_SOURCE +#if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE +#include "sys/types.h" #include "fcntl.h" #else #define open(fname, flags, mode) (filename ? -1 : -1) |
