ssl pending buffered reads unbreak NO_SSL
authorAndy Green <andy.green@linaro.org>
Thu, 29 Jan 2015 01:42:22 +0000 (09:42 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 29 Jan 2015 01:42:22 +0000 (09:42 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/lws-plat-unix.c

index a894e80..52069cc 100644 (file)
@@ -97,7 +97,9 @@ lws_plat_service(struct libwebsocket_context *context, int timeout_ms)
        int n;
        int m;
        char buf;
+#ifdef LWS_OPENSSL_SUPPORT
        struct libwebsocket *wsi, *wsi_next;
+#endif
 
        /* stay dead once we are dead */