mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Fixed compiler warning on Windows.
This commit is contained in:
parent
c451a4f4d5
commit
aeb574870e
1 changed files with 5 additions and 1 deletions
|
@ -21,6 +21,10 @@
|
|||
|
||||
#include "private-libwebsockets.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
const struct lws_tokens lws_tokens[WSI_TOKEN_COUNT] = {
|
||||
|
||||
/* win32 can't do C99 */
|
||||
|
@ -1307,7 +1311,7 @@ illegal_ctl_length:
|
|||
int libwebsocket_interpret_incoming_packet(struct libwebsocket *wsi,
|
||||
unsigned char *buf, size_t len)
|
||||
{
|
||||
int n;
|
||||
size_t n;
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "received %d byte packet\n", (int)len);
|
||||
|
|
Loading…
Add table
Reference in a new issue