Allow to remove libmicrohttpd (HTTP server)
[src/app-framework-binder.git] / src / afb-hswitch.c
index b4692bc..604815a 100644 (file)
@@ -16,6 +16,8 @@
  * limitations under the License.
  */
 
+#if WITH_LIBMICROHTTPD
+
 #define _GNU_SOURCE
 
 #include <stdlib.h>
@@ -109,4 +111,4 @@ int afb_hswitch_websocket_switch(struct afb_hreq *hreq, void *data)
        return afb_websock_check_upgrade(hreq, apiset);
 }
 
-
+#endif