summaryrefslogtreecommitdiff
path: root/libc/stdio/gets.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-12-15 00:12:23 +0000
committerEric Andersen <andersen@codepoet.org>2006-12-15 00:12:23 +0000
commit868274823302c293bdf3d31a3415f19d4030864e (patch)
tree9a3398f6c12b8d063beab408381112a8a3c6b20c /libc/stdio/gets.c
parent21f79fd580a5c70f7b7598d8ca8e87770219db94 (diff)
Patch from Bernhard Fischer:
fix compilation if PUTC_MACRO and/or GETC_MACRO is turned off
Diffstat (limited to 'libc/stdio/gets.c')
-rw-r--r--libc/stdio/gets.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/stdio/gets.c b/libc/stdio/gets.c
index dc541339b..85bb8475a 100644
--- a/libc/stdio/gets.c
+++ b/libc/stdio/gets.c
@@ -11,11 +11,9 @@ link_warning(gets, "the 'gets' function is dangerous and should not be used.")
/* UNSAFE FUNCTION -- do not bother optimizing */
+/* disable macro, force actual function call */
+#undef getchar_unlocked
libc_hidden_proto(getchar_unlocked)
-libc_hidden_proto(__fgetc_unlocked)
-#ifndef __STDIO_GETC_MACRO
-#define __stdin stdin
-#endif
char *gets(char *s)
{