From f14f7237dcd0e63d12495246f6346e43773afd37 Mon Sep 17 00:00:00 2001 From: Stephan Eberle Date: Tue, 26 Apr 2016 22:38:42 +0200 Subject: [PATCH] Fixed build failure under Linux with GNU 4.8.4 --- lib/server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/server.c b/lib/server.c index a0194c46..8bd68487 100644 --- a/lib/server.c +++ b/lib/server.c @@ -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);