1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

Disabled static link handling for WIN_CE to temporarily avoid the fact that it has no stat struct

This commit is contained in:
OndraCo 2016-05-05 13:28:04 +02:00 committed by Andy Green
parent 624b23df5e
commit 6a81b08dc2

View file

@ -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) {