diff options
Diffstat (limited to 'src/stdio')
| -rw-r--r-- | src/stdio/getc_unlocked.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stdio/getc_unlocked.c b/src/stdio/getc_unlocked.c index e78a5853..00228a65 100644 --- a/src/stdio/getc_unlocked.c +++ b/src/stdio/getc_unlocked.c @@ -1,12 +1,12 @@ #include <stdio.h> #include "_stdio.h" -#if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE -#include "sys/types.h" -#include "unistd.h" +#if defined _POSIX_SOURCE +#include <sys/types.h> +#include <unistd.h> #else #include "_syscall.h" -#define read(_fd, _buf, _size) __syscall(__syscall_lookup(read), _fd, _buf, _size) +#define read(_fd, _buf, _size) __scall3(read, _fd, _buf, _size) #endif int getc_unlocked(FILE * stream) |
