about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/misc/basename.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc/basename.c b/src/misc/basename.c
index c87e00cd..cc4f778c 100644
--- a/src/misc/basename.c
+++ b/src/misc/basename.c
@@ -1,5 +1,6 @@
 #include <string.h>
 #include <libgen.h>
+#include "libc.h"
 
 char *basename(char *s)
 {
@@ -10,3 +11,5 @@ char *basename(char *s)
 	for (; i&&s[i-1]!='/'; i--);
 	return s+i;
 }
+
+weak_alias(basename, __xpg_basename);