Allow to remove libmicrohttpd (HTTP server)
[src/app-framework-binder.git] / src / afb-hsrv.c
index ed0adee..28eca40 100644 (file)
@@ -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