Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net-snmp: support compilation with GCC 11 permissively #25577

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions net/net-snmp/patches/200-add-pcre2-support.patch
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Subject: [PATCH] add pcre2 support
+#ifdef HAVE_PCRE2_H
+#define PCRE2_CODE_UNIT_WIDTH 8
+#include <pcre2.h>
+#elifdef HAVE_PCRE_H
+#elif defined(HAVE_PCRE_H)
#include <pcre.h>
#endif

Expand Down Expand Up @@ -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;

Expand Down
Loading