diff --git a/net/net-snmp/patches/200-add-pcre2-support.patch b/net/net-snmp/patches/200-add-pcre2-support.patch index 1eed65e8a..c3f0cc61e 100644 --- a/net/net-snmp/patches/200-add-pcre2-support.patch +++ b/net/net-snmp/patches/200-add-pcre2-support.patch @@ -211,7 +211,7 @@ Subject: [PATCH] add pcre2 support +#ifdef HAVE_PCRE2_H +#define PCRE2_CODE_UNIT_WIDTH 8 +#include -+#elifdef HAVE_PCRE_H ++#elif defined(HAVE_PCRE_H) #include #endif @@ -262,7 +262,7 @@ Subject: [PATCH] add pcre2 support + if ((*procp)->regexp.regex_ptr == NULL) { + config_perror(pcre2_error_msg); + } -+#elifdef HAVE_PCRE_H ++#elif defined(HAVE_PCRE_H) const char *pcre_error; int pcre_error_offset;