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

windows: constify first arg of plat fops open

https://github.com/warmcat/libwebsockets/issues/871
This commit is contained in:
dspname 2017-04-19 20:28:48 +08:00 committed by Andy Green
parent 0b9686224d
commit ca6242a1d3
3 changed files with 7 additions and 2 deletions

View file

@ -4423,7 +4423,7 @@ lws_cgi_kill(struct lws *wsi);
struct lws_plat_file_ops;
#if defined(WIN32) || defined(_WIN32)
#if (defined(WIN32) || defined(_WIN32)) && !defined(__MINGW32__)
/* ... */
#if !defined(ssize_t)
typedef SSIZE_T ssize_t;

View file

@ -526,7 +526,7 @@ lws_plat_inet_ntop(int af, const void *src, char *dst, int cnt)
}
LWS_VISIBLE lws_fop_fd_t
_lws_plat_file_open(struct lws_plat_file_ops *fops, const char *filename,
_lws_plat_file_open(const struct lws_plat_file_ops *fops, const char *filename,
const char *vpath, lws_fop_flags_t *flags)
{
HANDLE ret;

View file

@ -21,6 +21,11 @@
#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)
{