diff options
| author | 2025-04-13 17:03:08 +0100 | |
|---|---|---|
| committer | 2025-04-13 17:03:08 +0100 | |
| commit | d0e321b92c55902ccb3ca98ddd8553cb57e55c77 (patch) | |
| tree | d7e0f9cdbe7d292b8409b0156da449eb9299c74e /modules/httpd.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
| parent | Remove 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.cpp | 9 |
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 |
