about summary refs log tree commit diff
path: root/libio/putc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/putc.c')
-rw-r--r--libio/putc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libio/putc.c b/libio/putc.c
index 72cd2a1a05..0236224cde 100644
--- a/libio/putc.c
+++ b/libio/putc.c
@@ -40,4 +40,9 @@ _IO_putc (c, fp)
 
 #ifdef weak_alias
 weak_alias (_IO_putc, putc)
+
+#ifndef _IO_MTSAFE_IO
+#undef putc_unlocked
+weak_alias (_IO_putc, putc_unlocked)
+#endif
 #endif