From c0e228864da1b2fbfc85637b5524c4c90ab62fce Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Fri, 18 Apr 1997 06:37:07 +0000 Subject: imported from mkid-3.0.7 --- misc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'misc.c') 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 -- cgit v1.2.3