aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-hsrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-hsrv.c')
-rw-r--r--src/afb-hsrv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c
index ed0adeeb..28eca401 100644
--- a/src/afb-hsrv.c
+++ b/src/afb-hsrv.c
@@ -15,6 +15,8 @@
* limitations under the License.
*/
+#if WITH_LIBMICROHTTPD
+
#define _GNU_SOURCE
#include <stdint.h>
@@ -590,3 +592,5 @@ int afb_hsrv_add_interface_tcp(struct afb_hsrv *hsrv, const char *itf, uint16_t
}
return afb_hsrv_add_interface(hsrv, buffer);
}
+
+#endif