projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f41a9d
)
Fixed build failure under Linux with GNU 4.8.4
author
Stephan Eberle
<stephaneberle9@gmail.com>
Tue, 26 Apr 2016 20:38:42 +0000
(22:38 +0200)
committer
Andy Green
<andy@warmcat.com>
Tue, 26 Apr 2016 23:32:56 +0000
(07:32 +0800)
lib/server.c
patch
|
blob
|
history
diff --git
a/lib/server.c
b/lib/server.c
index a0194c463638697f1a649fd61c2fd4438217238f..8bd68487371176e3578589f078a702a4803969e3 100644
(file)
--- 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);