windows: constify first arg of plat fops open
[platform/upstream/libwebsockets.git] / lib / ssl.c
index 11aa14f..0279367 100644 (file)
--- a/lib/ssl.c
+++ b/lib/ssl.c
 
 #include "private-libwebsockets.h"
 
+/* workaround for mingw */
+#if !defined(ECONNABORTED)
+#define ECONNABORTED 103
+#endif
+
 int lws_alloc_vfs_file(struct lws_context *context, const char *filename, uint8_t **buf,
                lws_filepos_t *amount)
 {