projects
/
profile
/
ivi
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c129091
)
Fixed compiler warning on Windows.
34/2834/1
author
David Galeano
<davidgaleano@turbulenz.biz>
Wed, 9 Jan 2013 07:25:05 +0000
(15:25 +0800)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:21 +0000
(13:01 -0800)
lib/parsers.c
patch
|
blob
|
history
diff --git
a/lib/parsers.c
b/lib/parsers.c
index
a185971
..
2298c4e
100644
(file)
--- a/
lib/parsers.c
+++ b/
lib/parsers.c
@@
-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)
{
-
in
t n;
+
size_
t n;
#ifdef DEBUG
fprintf(stderr, "received %d byte packet\n", (int)len);