windows: constify first arg of plat fops open
https://github.com/warmcat/libwebsockets/issues/871
This commit is contained in:
parent
ba16f5172c
commit
2d6fd20c60
3 changed files with 6 additions and 2 deletions
|
@ -4341,7 +4341,7 @@ lws_cgi_kill(struct lws *wsi);
|
||||||
|
|
||||||
struct lws_plat_file_ops;
|
struct lws_plat_file_ops;
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32)
|
#if (defined(WIN32) || defined(_WIN32)) && !defined(__MINGW32__)
|
||||||
/* ... */
|
/* ... */
|
||||||
#if !defined(ssize_t)
|
#if !defined(ssize_t)
|
||||||
typedef SSIZE_T ssize_t;
|
typedef SSIZE_T ssize_t;
|
||||||
|
|
|
@ -526,7 +526,7 @@ lws_plat_inet_ntop(int af, const void *src, char *dst, int cnt)
|
||||||
}
|
}
|
||||||
|
|
||||||
LWS_VISIBLE lws_fop_fd_t
|
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)
|
const char *vpath, lws_fop_flags_t *flags)
|
||||||
{
|
{
|
||||||
HANDLE ret;
|
HANDLE ret;
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
#include "private-libwebsockets.h"
|
#include "private-libwebsockets.h"
|
||||||
|
|
||||||
|
/* workaround for mingw */
|
||||||
|
#if !defined(ECONNABORTED)
|
||||||
|
#define ECONNABORTED 103
|
||||||
|
#endif
|
||||||
|
|
||||||
int openssl_websocket_private_data_index,
|
int openssl_websocket_private_data_index,
|
||||||
openssl_SSL_CTX_private_data_index;
|
openssl_SSL_CTX_private_data_index;
|
||||||
|
|
Loading…
Add table
Reference in a new issue