[Libwebsockets] fix for broken build (without SSL) BIO stuff not present without SSL

Edwin van den Oetelaar oetelaar.automatisering at gmail.com
Mon Jan 28 14:16:53 CET 2013


Hello Andy,

something broke with your latest patch.

Greetings,
Edwin van den Oetelaar

diff --git a/lib/server.c b/lib/server.c
index 6f8e437..841ba6c 100644
--- a/lib/server.c
+++ b/lib/server.c
@@ -140,11 +140,12 @@ int lws_server_socket_service(struct
libwebsocket_context *context,
        unsigned int clilen;
        struct sockaddr_in cli_addr;
        int n;
-       int m;
        int opt = 1;
        ssize_t len;
+#ifdef LWS_OPENSSL_SUPPORT
+    int m;
        BIO *bio;
-
+#endif
        switch (wsi->mode) {

        case LWS_CONNMODE_HTTP_SERVING:



More information about the Libwebsockets mailing list