From: Peter Howkins Date: Sun, 11 Mar 2012 23:58:53 +0000 (+0000) Subject: No need to create another version of basename(), there's one available X-Git-Tag: 2.2.0a~26^2~131 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b79b425f8940f946f1a1c0d228bdcb6bb6bdb0a;p=oweals%2Fcde.git No need to create another version of basename(), there's one available on Linux --- diff --git a/cde/lib/tt/bin/tttar/tttar_file_utils.C b/cde/lib/tt/bin/tttar/tttar_file_utils.C index acfe90f6..0770986b 100644 --- a/cde/lib/tt/bin/tttar/tttar_file_utils.C +++ b/cde/lib/tt/bin/tttar/tttar_file_utils.C @@ -362,6 +362,7 @@ append_real_subtrees( _Tt_string_list_ptr realtrees, _Tt_string path ) /* * basename() - Return the last component of a pathname. */ +#if !defined(linux) char *basename( char *pathname ) { char *the_basename; @@ -373,6 +374,7 @@ char *basename( char *pathname ) { } return the_basename; } +#endif /* * dirname() - Return the pathname minus the basename, or "." if the