aboutsummaryrefslogtreecommitdiff
path: root/modules/httpd.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-04-13 17:03:08 +0100
committerGravatar Sadie Powell2025-04-13 17:03:08 +0100
commitd0e321b92c55902ccb3ca98ddd8553cb57e55c77 (patch)
treed7e0f9cdbe7d292b8409b0156da449eb9299c74e /modules/httpd.cpp
parentMerge branch 'insp4' into master. (diff)
parentRemove the {fmt} headers that we don't use. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/httpd.cpp')
-rw-r--r--modules/httpd.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/httpd.cpp b/modules/httpd.cpp
index af9ef5f26..42fea8152 100644
--- a/modules/httpd.cpp
+++ b/modules/httpd.cpp
@@ -26,6 +26,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+/// $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 <http_parser/http_parser.c>
+#ifdef USE_SYSTEM_HTTP_PARSER
+# include <http_parser.h>
+#else
+# include <http_parser/http_parser.c>
+#endif
#ifdef __GNUC__
# pragma GCC diagnostic pop