summaryrefslogtreecommitdiffstats
path: root/misc.c
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>1997-04-18 06:37:07 +0000
committerGreg McGary <greg@mcgary.org>1997-04-18 06:37:07 +0000
commitc0e228864da1b2fbfc85637b5524c4c90ab62fce (patch)
treec30081f0af75ba51194bd672180690d6524b0448 /misc.c
parentad89a5d46547cb45b918926269ca2883eccf5e23 (diff)
downloadidutils-c0e228864da1b2fbfc85637b5524c4c90ab62fce.tar.gz
idutils-c0e228864da1b2fbfc85637b5524c4c90ab62fce.tar.bz2
idutils-c0e228864da1b2fbfc85637b5524c4c90ab62fce.zip
imported from mkid-3.0.7r3_0_7
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 40a0da9..e0dc945 100644
--- a/misc.c
+++ b/misc.c
@@ -23,6 +23,7 @@
#include "strxtra.h"
#include "misc.h"
+#if !HAVE_BASENAME
char const *
basename (char const *path)
{
@@ -34,7 +35,9 @@ basename (char const *path)
else
return path;
}
+#endif
+#if !HAVE_DIRNAME
char const *
dirname (char const *path)
{
@@ -46,6 +49,7 @@ dirname (char const *path)
else
return ".";
}
+#endif
/* This is like fgets(3s), except that lines are delimited by NULs
rather than newlines. Also, we return the number of characters