aboutsummaryrefslogtreecommitdiff
path: root/libio/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/getchar.c')
-rw-r--r--libio/getchar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libio/getchar.c b/libio/getchar.c
index 80c297f..a7a1072 100644
--- a/libio/getchar.c
+++ b/libio/getchar.c
@@ -40,3 +40,8 @@ getchar ()
_IO_cleanup_region_end (0);
return result;
}
+
+#if defined weak_alias && !defined _IO_MTSAFE_IO
+#undef getchar_unlocked
+weak_alias (getchar, getchar_unlocked)
+#endif