From 7d9acced279455c0caa7fb637246efe5bd807569 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 20 Apr 2021 19:32:15 +0200 Subject: [PATCH] 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. --- contrib/modsecurity/Makefile | 2 +- contrib/modsecurity/modsec_wrapper.c | 9 ++------- contrib/modsecurity/spoa.c | 1 - 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/contrib/modsecurity/Makefile b/contrib/modsecurity/Makefile index 93119b3b6..a00bdd009 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 3a55ab2bb..7880a1830 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 b0b042ee7..37564055c 100644 --- a/contrib/modsecurity/spoa.c +++ b/contrib/modsecurity/spoa.c @@ -36,7 +36,6 @@ #include #include -#include #include #include