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