diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-16 12:11:47 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-16 12:11:47 -0400 |
commit | 6b422ab2b2a6a31cb633116be8cf262e60d04885 (patch) | |
tree | 97a229bbec3f5df172682d9d74fe7095c8feeede | |
parent | dbbc8201467807aee5578ff6c5fda91aae55de8e (diff) |
simplify inline syscall if necessary
-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) |