Allow to remove libmicrohttpd (HTTP server)
[src/app-framework-binder.git] / src / afb-websock.c
index 73bb3c5..9e121c1 100644 (file)
@@ -15,6 +15,8 @@
  * limitations under the License.
  */
 
+#if WITH_LIBMICROHTTPD
+
 #define _GNU_SOURCE
 
 #include <stdlib.h>
@@ -255,3 +257,4 @@ int afb_websock_check_upgrade(struct afb_hreq *hreq, struct afb_apiset *apiset)
        return rc;
 }
 
+#endif