summaryrefslogtreecommitdiff
path: root/src/stdio/fgetc.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-03-04 03:23:42 -0500
committerJakob Kaivo <jkk@ung.org>2020-03-04 03:23:42 -0500
commit0bd100d7cca8d9b333a309448c2847b3dbce4a06 (patch)
tree798d286c59f77e9cab77ea7d4845811b8a1f1be2 /src/stdio/fgetc.c
parent921b86d6a1316585469fd0c1a2d876079925ec11 (diff)
compile with c=AMD1 and POSIX.2
Diffstat (limited to 'src/stdio/fgetc.c')
-rw-r--r--src/stdio/fgetc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c
index ae1f529a..08fe4e64 100644
--- a/src/stdio/fgetc.c
+++ b/src/stdio/fgetc.c
@@ -1,8 +1,8 @@
#include <stdio.h>
#include "_stdio.h"
-#ifndef _POSIX_C_SOURCE
-#define getc_unlocked(...) 0
+#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 199506L
+#include "getc_unlocked.c"
#endif
/** read a character from a file stream **/