mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-26 12:27:28 +08:00
Do not include microhttpd.h if WITH_HTTP_API is disabled
Signed-off-by: Nicholas Jackson <nickajacks1@gmail.com>
This commit is contained in:
committed by
Roger Light
parent
534d59797e
commit
fdf1943b1b
+2
-2
@@ -18,6 +18,8 @@ Contributors:
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef WITH_HTTP_API
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <microhttpd.h>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user