From 6b422ab2b2a6a31cb633116be8cf262e60d04885 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 12:11:47 -0400 Subject: simplify inline syscall if necessary --- src/stdio/getc_unlocked.c | 8 ++++---- 1 file 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 #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 +#include #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) -- cgit v1.2.1