fix build without ssl support
authorAndy Green <andy.green@linaro.org>
Tue, 19 Aug 2014 00:41:26 +0000 (08:41 +0800)
committerAndy Green <andy.green@linaro.org>
Tue, 19 Aug 2014 00:41:26 +0000 (08:41 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c

index 166dd3c..602acaf 100644 (file)
@@ -767,7 +767,11 @@ LWS_VISIBLE void lws_set_log_level(int level, void (*log_emit_function)(int leve
 LWS_VISIBLE int
 lws_is_ssl(struct libwebsocket *wsi)
 {
+#ifdef LWS_OPENSSL_SUPPORT
        return wsi->use_ssl;
+#else
+       return 0;
+#endif
 }
 
 /**