aboutsummaryrefslogtreecommitdiff
path: root/libio/getc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/getc.c')
-rw-r--r--libio/getc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libio/getc.c b/libio/getc.c
index 6ccef9960d..b58ea99d1d 100644
--- a/libio/getc.c
+++ b/libio/getc.c
@@ -47,4 +47,10 @@ _IO_getc (fp)
#ifdef weak_alias
weak_alias (_IO_getc, getc)
weak_alias (_IO_getc, fgetc)
+
+#ifndef _IO_MTSAFE_IO
+#undef getc_unlocked
+weak_alias (_IO_getc, getc_unlocked)
+weak_alias (_IO_getc, fgetc_unlocked)
+#endif
#endif