X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hswitch.c;h=604815af3c45373a6006c765464ef6ededacc0bd;hb=0e2b5f5b7fa3a09abf61c8253efce7c7f2b4c444;hp=b4692bc5735ec44817d1b4a75721df2f3e1b6fba;hpb=f2f086fa99e47ca8b3001831ea3548f8758e1222;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hswitch.c b/src/afb-hswitch.c index b4692bc5..604815af 100644 --- a/src/afb-hswitch.c +++ b/src/afb-hswitch.c @@ -16,6 +16,8 @@ * limitations under the License. */ +#if WITH_LIBMICROHTTPD + #define _GNU_SOURCE #include @@ -109,4 +111,4 @@ int afb_hswitch_websocket_switch(struct afb_hreq *hreq, void *data) return afb_websock_check_upgrade(hreq, apiset); } - +#endif