about summary refs log tree commit diff
path: root/string/basename.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/basename.c')
-rw-r--r--string/basename.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/string/basename.c b/string/basename.c
index 5052ebf4df..4caabca8f0 100644
--- a/string/basename.c
+++ b/string/basename.c
@@ -19,9 +19,11 @@
 #include <string.h>
 
 char *
-basename (const char *filename)
+__basename (const char *filename)
 {
   char *p = strrchr (filename, '/');
   return p ? p + 1 : (char *) filename;
 }
-libc_hidden_def (basename)
+libc_hidden_def (__basename)
+weak_alias (__basename, basename)
+libc_hidden_weak (basename)