mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
Fixed build failure under Linux with GNU 4.8.4
This commit is contained in:
parent
3f41a9de5b
commit
f14f7237dc
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue