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/bsdtar.h | |
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/bsdtar.h')
-rw-r--r-- | tar/bsdtar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/bsdtar.h b/tar/bsdtar.h index a03d05ad..637e1b9d 100644 --- a/tar/bsdtar.h +++ b/tar/bsdtar.h @@ -173,7 +173,7 @@ void tar_mode_x(struct bsdtar *bsdtar); void usage(void); int yes(const char *fmt, ...); -#if HAVE_REGEX_H +#if defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H) void add_substitution(struct bsdtar *, const char *); int apply_substitution(struct bsdtar *, const char *, char **, int, int); void cleanup_substitution(struct bsdtar *); |