about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/putc_u.c4
-rw-r--r--libio/stdio.h10
2 files changed, 8 insertions, 6 deletions
diff --git a/libio/putc_u.c b/libio/putc_u.c
index 18bbd491d8..85912e583f 100644
--- a/libio/putc_u.c
+++ b/libio/putc_u.c
@@ -29,3 +29,7 @@ putc_unlocked (c, fp)
   CHECK_FILE (fp, EOF);
   return _IO_putc_unlocked (c, fp);
 }
+
+#ifdef _LIBC_REENTRANT
+weak_alias (putc_unlocked, _IO_putc_unlocked)
+#endif
diff --git a/libio/stdio.h b/libio/stdio.h
index ce3da7df4c..3b399e5502 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -237,12 +237,10 @@ extern int putchar_unlocked __P ((int));
 # ifndef _LIBC
 #  define getc_unlocked(fp) _IO_getc_unlocked (fp)
 #  define getc_locked(fp) fgetc (fp)
-#  define getchar_unlocked() getc_unlocked (stdin)
-#  define getchar_locked() getc_locked (stdin)
-#  define getc(fp) getc_locked (fp)
-#  define putchar_unlocked(c) putc_unlocked (c, stdout)
-#  define putchar_locked(c) putc_locked (c, stdout)
-#  define putc(c, fp) putc_locked (c, fp)
+#  define getchar_unlocked() _IO_getc_unlocked (stdin)
+#  define getchar_locked() getc (stdin)
+#  define putchar_unlocked(c) _IO_putc_unlocked (c, stdout)
+#  define putchar_locked(c) putc (c, stdout)
 # endif
 
 #endif /* __USE_REENTRANT */