From: Willy Tarreau Date: Tue, 20 Apr 2021 17:32:15 +0000 (+0200) Subject: CONTRIB: modsecurity: make the code build with the embedded includes X-Git-Tag: v2.4-dev17~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d9acced279455c0caa7fb637246efe5bd807569;p=thirdparty%2Fhaproxy.git CONTRIB: modsecurity: make the code build with the embedded includes From now on the code only needs its embedded dependencies and does not depend any more on external haproxy dependencies. It can now be built as a standalone project. --- diff --git a/contrib/modsecurity/Makefile b/contrib/modsecurity/Makefile index 93119b3b61..a00bdd009d 100644 --- a/contrib/modsecurity/Makefile +++ b/contrib/modsecurity/Makefile @@ -34,7 +34,7 @@ EVENT_INC := /usr/include endif CFLAGS += -g -Wall -pthread -INCS += -I../../include -I$(MODSEC_INC) -I$(APACHE2_INC) -I$(APR_INC) -I$(LIBXML_INC) -I$(EVENT_INC) +INCS += -Iinclude -I$(MODSEC_INC) -I$(APACHE2_INC) -I$(APR_INC) -I$(LIBXML_INC) -I$(EVENT_INC) LIBS += -lpthread $(EVENT_LIB) -levent_pthreads -lcurl -lapr-1 -laprutil-1 -lxml2 -lpcre -lyajl OBJS = spoa.o modsec_wrapper.o diff --git a/contrib/modsecurity/modsec_wrapper.c b/contrib/modsecurity/modsec_wrapper.c index 3a55ab2bbb..7880a18309 100644 --- a/contrib/modsecurity/modsec_wrapper.c +++ b/contrib/modsecurity/modsec_wrapper.c @@ -16,13 +16,8 @@ #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include #include diff --git a/contrib/modsecurity/spoa.c b/contrib/modsecurity/spoa.c index b0b042ee7e..37564055ce 100644 --- a/contrib/modsecurity/spoa.c +++ b/contrib/modsecurity/spoa.c @@ -36,7 +36,6 @@ #include #include -#include #include #include