diff options
author | Andres Mejia <amejia004@gmail.com> | 2013-01-31 18:39:39 -0500 |
---|---|---|
committer | Andres Mejia <amejia004@gmail.com> | 2013-01-31 18:39:39 -0500 |
commit | b708276ac543fb1c3d48fbd57f5592334a0dea28 (patch) | |
tree | 70958d75d3c94dc4412670e4378c4d61eba79c11 /tar/util.c | |
parent | 1148d8d933c6f82033ce19e1d67c8fa1dea50c44 (diff) | |
download | libarchive-b708276ac543fb1c3d48fbd57f5592334a0dea28.tar.gz |
Support POSIX regular expression support using PCRE in CMake builds.
This change is mainly meant for Windows regex support, where PCRE Windows development is much
more active than development of the regex library found in the GNUWin32 packages. I found that
the latest release of PCRE built right out of the box, unlike the GNUWin32 regex library released
6 years ago which failed to build from source for me using the mingw toolchain.
Diffstat (limited to 'tar/util.c')
-rw-r--r-- | tar/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -382,7 +382,7 @@ int edit_pathname(struct bsdtar *bsdtar, struct archive_entry *entry) { const char *name = archive_entry_pathname(entry); -#if HAVE_REGEX_H +#if defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H) char *subst_name; int r; |