]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CONTRIB: modsecurity: make the code build with the embedded includes
authorWilly Tarreau <w@1wt.eu>
Tue, 20 Apr 2021 17:32:15 +0000 (19:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Apr 2021 17:34:02 +0000 (19:34 +0200)
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
contrib/modsecurity/modsec_wrapper.c
contrib/modsecurity/spoa.c

index 93119b3b619851811175a7266cb6931f05d3a72e..a00bdd009dd9bd6530f250bbddd3180d63657223 100644 (file)
@@ -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
index 3a55ab2bbba6afd5ab0ccc55ecc15d65288f593c..7880a1830912f0fdc823eaffe6b6af80125901e3 100644 (file)
 #include <stdio.h>
 #include <stdarg.h>
 
-#include <haproxy/arg.h>
-#include <haproxy/errors.h>
-#include <haproxy/global.h>
-#include <haproxy/hlua.h>
-#include <haproxy/spoe.h>
-#include <haproxy/stream-t.h>
-#include <haproxy/time.h>
+#include <haproxy/intops.h>
+#include <haproxy/sample-t.h>
 
 #include <api.h>
 
index b0b042ee7e31c74630169859d9df4f0bbe396ecc..37564055ce0f4ea39cb7d874111419e2a2ca78d1 100644 (file)
@@ -36,7 +36,6 @@
 #include <event2/event_struct.h>
 #include <event2/thread.h>
 
-#include <haproxy/chunk.h>
 #include <haproxy/list.h>
 #include <haproxy/spoe.h>