diff options
Diffstat (limited to 'lib/portability.c')
-rw-r--r-- | lib/portability.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/portability.c b/lib/portability.c index 7d6d85f3..4fd1e224 100644 --- a/lib/portability.c +++ b/lib/portability.c @@ -6,6 +6,14 @@ #include "toys.h" +#if defined(__GLIBC__) +#include <libgen.h> +char *basename(char *path) +{ + return __xpg_basename(path); +} +#endif + #if !defined(__uClinux__) pid_t xfork(void) { |