summaryrefslogtreecommitdiff
path: root/src/stdio/fgetc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fgetc.c')
-rw-r--r--src/stdio/fgetc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c
index 8c682c39..ae1f529a 100644
--- a/src/stdio/fgetc.c
+++ b/src/stdio/fgetc.c
@@ -1,5 +1,9 @@
#include <stdio.h>
-#include "nonstd/io.h"
+#include "_stdio.h"
+
+#ifndef _POSIX_C_SOURCE
+#define getc_unlocked(...) 0
+#endif
/** read a character from a file stream **/
int fgetc(FILE *stream)