Merge r622 from libarchive.googlecode.com: Avoid warning on platforms
that lack regex.h.
This commit is contained in:
parent
2016bf66ed
commit
93903defed
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user