summaryrefslogtreecommitdiff
path: root/src/stdio/getchar_unlocked.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-03-04 03:14:54 -0500
committerJakob Kaivo <jkk@ung.org>2020-03-04 03:14:54 -0500
commit2c6147ab6c567babf07b85820e99f541e423614a (patch)
tree9067b51de895125ecfee07bc57c254d6fb4f8fad /src/stdio/getchar_unlocked.c
parent584c5b3e93e3007dfb16bcb43d901df74be21116 (diff)
fix compilation when c=199409
Diffstat (limited to 'src/stdio/getchar_unlocked.c')
-rw-r--r--src/stdio/getchar_unlocked.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stdio/getchar_unlocked.c b/src/stdio/getchar_unlocked.c
new file mode 100644
index 00000000..adeeccbd
--- /dev/null
+++ b/src/stdio/getchar_unlocked.c
@@ -0,0 +1,10 @@
+#include <stdio.h>
+
+int getchar_unlocked(void)
+{
+ return getc_unlocked(stdin);
+}
+
+/*
+POSIX(199506)
+*/