From f0a16ce17b6dc3a20d7860e4a1ccf07251cc6e0e Mon Sep 17 00:00:00 2001 From: OndraCo Date: Fri, 6 May 2016 07:50:30 +0800 Subject: [PATCH] Disabled static link handling for WIN_CE to temporarily avoid the fact that it has no stat struct --- lib/server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/server.c b/lib/server.c index 7d989cb..33f6c18 100644 --- a/lib/server.c +++ b/lib/server.c @@ -229,7 +229,9 @@ static const char * get_mimetype(const char *file) int lws_http_serve(struct lws *wsi, char *uri, const char *origin) { const char *mimetype; +#ifndef _WIN32_WCE struct stat st; +#endif 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; @@ -240,6 +242,7 @@ int lws_http_serve(struct lws *wsi, char *uri, const char *origin) snprintf(path, sizeof(path) - 1, "%s/%s", origin, uri); +#ifndef _WIN32_WCE do { spin++; @@ -309,6 +312,7 @@ int lws_http_serve(struct lws *wsi, char *uri, const char *origin) if (lws_add_http_header_by_token(wsi, WSI_TOKEN_HTTP_ETAG, (unsigned char *)sym, n, &p, end)) return -1; +#endif mimetype = get_mimetype(path); if (!mimetype) { -- 2.7.4