summaryrefslogtreecommitdiff
path: root/src/stdio
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 21:20:52 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 21:20:52 -0400
commitc4e34dcb011a90a102339a008e309b3d328339be (patch)
treeb8bf69f6abdc07ab89a9ed01686e65b0be48ac3f /src/stdio
parenta8e42258fc1c84abc6536c5f80b7d2e72d72e54c (diff)
cleanup includes
Diffstat (limited to 'src/stdio')
-rw-r--r--src/stdio/putc_unlocked.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stdio/putc_unlocked.c b/src/stdio/putc_unlocked.c
index 1e031e40..cf8c9cb4 100644
--- a/src/stdio/putc_unlocked.c
+++ b/src/stdio/putc_unlocked.c
@@ -2,9 +2,9 @@
#include "_stdio.h"
#include "_assert.h"
-#if defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || defined _XOPEN_SOURCE
-#include "sys/types.h"
-#include "unistd.h"
+#ifdef _POSIX_SOURCE
+#include <sys/types.h>
+#include <unistd.h>
#else
#include "_syscall.h"
#define write(_fd, _buf, _size) __syscall(__syscall_lookup(write), _fd, _buf, _size)