Merge r622 from libarchive.googlecode.com: Avoid warning on platforms

that lack regex.h.
This commit is contained in:
kientzle 2009-03-08 05:35:59 +00:00
parent 2016bf66ed
commit 93903defed

View File

@ -453,8 +453,8 @@ edit_pathname(struct bsdtar *bsdtar, struct archive_entry *entry)
const char *name = archive_entry_pathname(entry);
#if HAVE_REGEX_H
char *subst_name;
#endif
int r;
#endif
#if HAVE_REGEX_H
r = apply_substitution(bsdtar, name, &subst_name, 0);