From 302fce71e84796b589460e116a797a902474f310 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Sat, 10 May 2025 21:29:17 +0200 Subject: [PATCH] fix: 'make test' is able to run again --- tests/Makefile.am | 10 +++++++--- tests/msc_test.c | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 8ffc3bb3db..130bdba398 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -40,16 +40,18 @@ msc_test_CFLAGS = @APR_CFLAGS@ \ @LUA_CFLAGS@ \ @MODSEC_EXTRA_CFLAGS@ \ @PCRE_CFLAGS@ \ + @PCRE2_CFLAGS@ \ @YAJL_CFLAGS@ \ @SSDEEP_CFLAGS@ - + msc_test_CPPFLAGS = -I$(top_srcdir)/apache2 \ @APR_CPPFLAGS@ \ @CURL_CPPFLAGS@ \ @LIBXML2_CFLAGS@ \ @LIBXML2_CPPFLAGS@ \ - @PCRE_CPPFLAGS@ - + @PCRE_CPPFLAGS@ \ + @PCRE2_CPPFLAGS@ + msc_test_LDADD = @APR_LDADD@ \ @APU_LDADD@ \ @CURL_LDADD@ \ @@ -57,6 +59,7 @@ msc_test_LDADD = @APR_LDADD@ \ @LIBXML2_LDADD@ \ @LUA_LDADD@ \ @PCRE_LDADD@ \ + @PCRE2_LDADD@ \ @YAJL_LDADD@ \ @SSDEEP_CFLAGS@ @@ -67,6 +70,7 @@ msc_test_LDFLAGS = @APR_LDFLAGS@ \ @LIBXML2_LDFLAGS@ \ @LUA_LDFLAGS@ \ @PCRE_LDFLAGS@ \ + @PCRE2_LDFLAGS@ \ @YAJL_LDFLAGS@ \ @SSDEEP_LDFLAGS@ diff --git a/tests/msc_test.c b/tests/msc_test.c index 7c794a5d98..bf278d0add 100644 --- a/tests/msc_test.c +++ b/tests/msc_test.c @@ -81,7 +81,7 @@ char DSOLOCAL *real_server_signature = NULL; int DSOLOCAL remote_rules_fail_action = REMOTE_RULES_ABORT_ON_FAIL; char DSOLOCAL *remote_rules_fail_message = NULL; module AP_MODULE_DECLARE_DATA security2_module = { - NULL, + STANDARD20_MODULE_STUFF, NULL, NULL, NULL,