diff options
Diffstat (limited to 'libc/stdio/getchar.c')
-rw-r--r-- | libc/stdio/getchar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/stdio/getchar.c b/libc/stdio/getchar.c index 6da8307b6..e29c426c8 100644 --- a/libc/stdio/getchar.c +++ b/libc/stdio/getchar.c @@ -12,13 +12,16 @@ libc_hidden_proto(__fgetc_unlocked) #undef getchar #ifdef __DO_UNLOCKED +/* the only use of the hidden getchar_unlocked is in gets.c */ #undef getchar_unlocked +libc_hidden_proto(getchar_unlocked) int getchar_unlocked(void) { register FILE *stream = stdin; return __GETC_UNLOCKED_MACRO(stream); } +libc_hidden_def(getchar_unlocked) #ifndef __UCLIBC_HAS_THREADS__ strong_alias(getchar_unlocked,getchar) |