diff lib/portability.c @ 1665:5d003cc2fa16 draft

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.
author Rob Landley <rob@landley.net>
date Sun, 18 Jan 2015 13:44:24 -0600
parents aafd2f28245a
children 1b97da3c7b91
line wrap: on
line diff
--- a/lib/portability.c	Sun Jan 18 13:36:31 2015 -0600
+++ b/lib/portability.c	Sun Jan 18 13:44:24 2015 -0600
@@ -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)
 {