Fix lws MinGW compilation

Cherry picked 5b22276420032677841af9e9f3b0272d0dd467b8 from upstream.
This is fixed upstream and will be included in the next release
This commit is contained in:
Fabio Alessandrelli 2018-03-29 17:39:19 +02:00
parent 262cb262eb
commit dbf7898cea

View file

@ -20,11 +20,7 @@
*/
#include "private-libwebsockets.h"
/* workaround for mingw */
#if !defined(ECONNABORTED)
#define ECONNABORTED 103
#endif
#include <errno.h>
int lws_alloc_vfs_file(struct lws_context *context, const char *filename, uint8_t **buf,
lws_filepos_t *amount)