ports/www/nginx-devel/files/extra-patch-naxsi_runtime.c
Sergey A. Osokin 18ccca0d8a www/nginx-devel: update third-party naxsi module to its recent commit
Update third-party naxsi module to 29793dc, it's compatible with
nginx 1.23.0 now, also now it's possible to build the module with
PCRE2 support.

Bump PORTREVISION.
2022-07-10 18:19:21 -04:00

23 lines
630 B
C

--- ../naxsi-29793dc/naxsi_src/naxsi_runtime.c.orig 2022-07-10 18:11:39.685243000 -0400
+++ ../naxsi-29793dc/naxsi_src/naxsi_runtime.c 2022-07-10 18:14:53.935554000 -0400
@@ -9,6 +9,11 @@
#include "naxsi_macros.h"
#include "naxsi_net.h"
+#if (NGX_PCRE2)
+#include <pcre2.h>
+#else
+#include <pcre.h>
+#endif
/* used to store locations during the configuration time.
then, accessed by the hashtable building feature during "init" time. */
@@ -181,7 +186,7 @@
unsigned char*
ngx_utf8_check(ngx_str_t* str);
-#if defined nginx_version && (nginx_version >= 1021005)
+#if (NGX_PCRE2)
/*
* variables to use pcre2
*/