From fdf1943b1b68b45fdb120c1283325040390cbd05 Mon Sep 17 00:00:00 2001 From: Nicholas Jackson Date: Thu, 4 Dec 2025 15:25:51 -0800 Subject: [PATCH] Do not include microhttpd.h if WITH_HTTP_API is disabled Signed-off-by: Nicholas Jackson --- src/http_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http_api.c b/src/http_api.c index 1d1a155f..016ce393 100644 --- a/src/http_api.c +++ b/src/http_api.c @@ -18,6 +18,8 @@ Contributors: #include "config.h" +#ifdef WITH_HTTP_API + #include #include #include @@ -32,8 +34,6 @@ Contributors: #include "mosquitto/mqtt_protocol.h" #include "sys_tree.h" -#ifdef WITH_HTTP_API - #ifndef HTTP_API_DIR # define HTTP_API_DIR "" #endif