Fixed build failure under Linux with GNU 4.8.4
authorStephan Eberle <stephaneberle9@gmail.com>
Tue, 26 Apr 2016 20:38:42 +0000 (22:38 +0200)
committerAndy Green <andy@warmcat.com>
Tue, 26 Apr 2016 23:32:56 +0000 (07:32 +0800)
lib/server.c

index a0194c463638697f1a649fd61c2fd4438217238f..8bd68487371176e3578589f078a702a4803969e3 100644 (file)
@@ -233,6 +233,9 @@ int lws_http_serve(struct lws *wsi, char *uri, const char *origin)
        char path[256], sym[256];
        unsigned char *p = (unsigned char *)sym + 32 + LWS_PRE, *start = p;
        unsigned char *end = p + sizeof(sym) - 32 - LWS_PRE;
+#if !defined(WIN32)
+       size len;
+#endif
        int n, spin = 0;
 
        snprintf(path, sizeof(path) - 1, "%s/%s", origin, uri);