From 3dbb636af28e09dbd294f6fa065950a883db5203 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 12 Apr 2025 16:49:12 +0100 Subject: Allow building the httpd module against the system http_parser lib. --- src/modules/m_httpd.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 249a91f83..fa8c16a47 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -26,6 +26,9 @@ * along with this program. If not, see . */ +/// $CompilerFlags: require_environment("SYSTEM_HTTP_PARSER" "1") -DUSE_SYSTEM_HTTP_PARSER +/// $LinkerFlags: require_environment("SYSTEM_HTTP_PARSER" "1") -lhttp_parser + #include "inspircd.h" #include "iohook.h" @@ -41,7 +44,11 @@ # pragma GCC diagnostic ignored "-Wshadow" #endif -#include +#ifdef USE_SYSTEM_HTTP_PARSER +# include +#else +# include +#endif #ifdef __GNUC__ # pragma GCC diagnostic pop -- cgit v1.3.1-10-gc9f91