From fee65801c4f7f2f117745a7843ea418e7d3be4fc Mon Sep 17 00:00:00 2001 From: Mostyn Bramley-Moore Date: Tue, 12 Dec 2023 03:37:29 +0100 Subject: [PATCH] Add a couple of missing HAVE_PCRE2POSIX_H ifdefs (#2033) Followup to #2031. --- tar/bsdtar.h | 2 +- tar/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tar/bsdtar.h b/tar/bsdtar.h index ee7884f46..b4d9157f3 100644 --- a/tar/bsdtar.h +++ b/tar/bsdtar.h @@ -209,7 +209,7 @@ void tar_mode_x(struct bsdtar *bsdtar); __LA_NORETURN void usage(void); int yes(const char *fmt, ...) __LA_PRINTF(1, 2); -#if defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H) +#if defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H) || defined(HAVE_PCRE2POSIX_H) void add_substitution(struct bsdtar *, const char *); int apply_substitution(struct bsdtar *, const char *, char **, int, int); void cleanup_substitution(struct bsdtar *); diff --git a/tar/util.c b/tar/util.c index ffcf8fe72..37c3a2323 100644 --- a/tar/util.c +++ b/tar/util.c @@ -470,7 +470,7 @@ edit_pathname(struct bsdtar *bsdtar, struct archive_entry *entry) const char *original_name = name; const char *hardlinkname = archive_entry_hardlink(entry); const char *original_hardlinkname = hardlinkname; -#if defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H) +#if defined(HAVE_REGEX_H) || defined(HAVE_PCREPOSIX_H) || defined(HAVE_PCRE2POSIX_H) char *subst_name; int r; -- 2.47.2