summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/iofputs.c2
-rw-r--r--libio/iofputs_u.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/libio/iofputs.c b/libio/iofputs.c
index 00c1cba5da..d1e34e40b4 100644
--- a/libio/iofputs.c
+++ b/libio/iofputs.c
@@ -48,6 +48,8 @@ libc_hidden_def (_IO_fputs)
weak_alias (_IO_fputs, fputs)
# ifndef _IO_MTSAFE_IO
+strong_alias (_IO_fputs, __fputs_unlocked)
+libc_hidden_def (__fputs_unlocked)
weak_alias (_IO_fputs, fputs_unlocked)
libc_hidden_ver (_IO_fputs, fputs_unlocked)
# endif
diff --git a/libio/iofputs_u.c b/libio/iofputs_u.c
index 6f79838eae..f823686d5b 100644
--- a/libio/iofputs_u.c
+++ b/libio/iofputs_u.c
@@ -29,7 +29,7 @@
#include <string.h>
int
-fputs_unlocked (str, fp)
+__fputs_unlocked (str, fp)
const char *str;
_IO_FILE *fp;
{
@@ -40,4 +40,6 @@ fputs_unlocked (str, fp)
result = 1;
return result;
}
-libc_hidden_def (fputs_unlocked)
+libc_hidden_def (__fputs_unlocked)
+weak_alias (__fputs_unlocked, fputs_unlocked)
+libc_hidden_weak (fputs_unlocked)