Mercurial > hg > nginx
comparison src/os/win32/ngx_wsarecv.c @ 5360:3d2d3e1cf427
Win32: MinGW GCC compatibility.
Several warnings silenced, notably (ngx_socket_t) -1 is now checked
on socket operations instead of -1, as ngx_socket_t is unsigned on win32
and gcc complains on comparison.
With this patch, it's now possible to compile nginx using mingw gcc,
with options we normally compile on win32.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 04 Sep 2013 20:48:28 +0400 |
parents | d620f497c50f |
children | efd71d49bde0 |
comparison
equal
deleted
inserted
replaced
5359:2fda9065d0f4 | 5360:3d2d3e1cf427 |
---|---|
15 { | 15 { |
16 int rc; | 16 int rc; |
17 u_long bytes, flags; | 17 u_long bytes, flags; |
18 WSABUF wsabuf[1]; | 18 WSABUF wsabuf[1]; |
19 ngx_err_t err; | 19 ngx_err_t err; |
20 ngx_uint_t n; | 20 ngx_int_t n; |
21 ngx_event_t *rev; | 21 ngx_event_t *rev; |
22 | 22 |
23 wsabuf[0].buf = (char *) buf; | 23 wsabuf[0].buf = (char *) buf; |
24 wsabuf[0].len = size; | 24 wsabuf[0].len = size; |
25 flags = 0; | 25 flags = 0; |
68 { | 68 { |
69 int rc; | 69 int rc; |
70 u_long bytes, flags; | 70 u_long bytes, flags; |
71 WSABUF wsabuf[1]; | 71 WSABUF wsabuf[1]; |
72 ngx_err_t err; | 72 ngx_err_t err; |
73 ngx_uint_t n; | 73 ngx_int_t n; |
74 ngx_event_t *rev; | 74 ngx_event_t *rev; |
75 LPWSAOVERLAPPED ovlp; | 75 LPWSAOVERLAPPED ovlp; |
76 | 76 |
77 rev = c->read; | 77 rev = c->read; |
78 | 78 |