diff options
Diffstat (limited to 'contrib/libarchive/tar/subst.c')
-rw-r--r-- | contrib/libarchive/tar/subst.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/libarchive/tar/subst.c b/contrib/libarchive/tar/subst.c index b592fe0..2e05054 100644 --- a/contrib/libarchive/tar/subst.c +++ b/contrib/libarchive/tar/subst.c @@ -26,11 +26,15 @@ #include "bsdtar_platform.h" __FBSDID("$FreeBSD$"); -#if HAVE_REGEX_H +#if defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H) #include "bsdtar.h" #include <errno.h> +#ifdef HAVE_PCREPOSIX_H +#include <pcreposix.h> +#else #include <regex.h> +#endif #include <stdlib.h> #include <string.h> @@ -317,4 +321,4 @@ cleanup_substitution(struct bsdtar *bsdtar) } free(subst); } -#endif /* HAVE_REGEX_H */ +#endif /* defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H) */ |