about summary refs log tree commit diff
path: root/libio/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/stdio.c')
-rw-r--r--libio/stdio.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libio/stdio.c b/libio/stdio.c
index 9a594963e5..64a8ab2d57 100644
--- a/libio/stdio.c
+++ b/libio/stdio.c
@@ -39,7 +39,11 @@ _IO_FILE *stderr = (FILE *) &_IO_2_1_stderr_;
 #undef _IO_stdout
 #undef _IO_stderr
 #ifdef _LIBC
-strong_alias (stdin, _IO_stdin);
-strong_alias (stdout, _IO_stdout);
-strong_alias (stderr, _IO_stderr);
+# define AL(name) AL2 (name, _IO_##name)
+# define AL2(name, al) \
+  extern __typeof (name) al __attribute__ ((alias (#name),		      \
+					    visibility ("hidden")))
+AL(stdin);
+AL(stdout);
+AL(stderr);
 #endif