No need to create another version of basename(), there's one available
authorPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 23:58:53 +0000 (23:58 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 23:58:53 +0000 (23:58 +0000)
on Linux

cde/lib/tt/bin/tttar/tttar_file_utils.C

index acfe90f69c0207d3ba86960488b7ff2c34bd52d4..0770986bf4966eaaa8d8150190dbdd34e07b3ca4 100644 (file)
@@ -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