summaryrefslogtreecommitdiff
path: root/tar/util.c
diff options
context:
space:
mode:
authorAndres Mejia <amejia004@gmail.com>2013-01-31 18:39:39 -0500
committerAndres Mejia <amejia004@gmail.com>2013-01-31 18:39:39 -0500
commitb708276ac543fb1c3d48fbd57f5592334a0dea28 (patch)
tree70958d75d3c94dc4412670e4378c4d61eba79c11 /tar/util.c
parent1148d8d933c6f82033ce19e1d67c8fa1dea50c44 (diff)
downloadlibarchive-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/util.c b/tar/util.c
index ff4cd4fc..b1b9b93d 100644
--- a/tar/util.c
+++ b/tar/util.c
@@ -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;