]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add a couple of missing HAVE_PCRE2POSIX_H ifdefs (#2033)
authorMostyn Bramley-Moore <mostyn@antipode.se>
Tue, 12 Dec 2023 02:37:29 +0000 (03:37 +0100)
committerGitHub <noreply@github.com>
Tue, 12 Dec 2023 02:37:29 +0000 (18:37 -0800)
Followup to #2031.

tar/bsdtar.h
tar/util.c

index ee7884f4666f5e4cc488a0ed9153570494b5b726..b4d9157f3000ebf75e4e5438416545877120f547 100644 (file)
@@ -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 *);
index ffcf8fe72bdac6435492a5acfa41455a8a73b497..37c3a23231bd7f87afe9a76fd892d3249f8426df 100644 (file)
@@ -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;