aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-01-18 13:44:24 -0600
committerRob Landley <rob@landley.net>2015-01-18 13:44:24 -0600
commit468f155ecefec275e6d2299470d35bd912f69a94 (patch)
tree8d84fadd049c0d1475946706f64b9c7f19037a04 /lib/portability.c
parente910826c812fcde8d122990a1e43e17f46b6d03f (diff)
downloadtoybox-468f155ecefec275e6d2299470d35bd912f69a94.tar.gz
Lift the basename/libgen.h shenanigans back out of portability.c and make it a static inline in portability.h, and prototype dirname() while we're at it.
Diffstat (limited to 'lib/portability.c')
-rw-r--r--lib/portability.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/portability.c b/lib/portability.c
index 4fd1e224..7d6d85f3 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -6,14 +6,6 @@
#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)
{