]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
get_parent_and_basename() is used when HAVE_ZLIB_H(for zisofs support) is defined.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 25 Apr 2010 13:23:30 +0000 (09:23 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 25 Apr 2010 13:23:30 +0000 (09:23 -0400)
SVN-Revision: 2293

libarchive/archive_write_set_format_iso9660.c

index 2e877b83fcbc8f2f8abf6ba97986a5880b4f89e1..9864ab475c8dfb8c04897294b8e78bd842ffee85 100644 (file)
@@ -4804,6 +4804,7 @@ isofile_gen_utility_names(struct isofile *file)
                file->dircnt ++;
 }
 
+#ifdef HAVE_ZLIB_H
 static void
 get_parent_and_base(struct archive_string *parentdir,
     struct archive_string *basename, const char *pathname)
@@ -4844,6 +4845,7 @@ get_parent_and_base(struct archive_string *parentdir,
                archive_strcpy(basename,  slash + 1);
        }
 }
+#endif /* HAVE_ZLIB_H */
 
 /*
  * Register a entry to get a hardlink target.