diff options
Diffstat (limited to 'src/stdio/fputc.c')
| -rw-r--r-- | src/stdio/fputc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c index eb249b77..7b80f0ef 100644 --- a/src/stdio/fputc.c +++ b/src/stdio/fputc.c @@ -1,7 +1,8 @@ #include <stdio.h> #include "nonstd/io.h" -#ifdef _POSIX_SOURCE +#if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE +#include "sys/types.h" #include "unistd.h" #else #define write(fd, buf, size) -1 |
