diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-06-15 11:55:11 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-06-15 11:55:11 +0400 |
commit | 87350f269da4d82f2436aac91ae87fbd37ca6c16 (patch) | |
tree | 153b5d7d6bea91ad891de5168dd27d39e0082f66 /src/os/unix/ngx_socket.c | |
parent | f07f63ae46345eb2aa8a433b0bf48947d6cff95e (diff) |
nginx-0.0.7-2004-06-15-11:55:11 import
Diffstat (limited to 'src/os/unix/ngx_socket.c')
-rw-r--r-- | src/os/unix/ngx_socket.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/os/unix/ngx_socket.c b/src/os/unix/ngx_socket.c index 443c93bbf..da9ccbbd0 100644 --- a/src/os/unix/ngx_socket.c +++ b/src/os/unix/ngx_socket.c @@ -19,7 +19,9 @@ int ngx_nonblocking(ngx_socket_t s) { - unsigned long nb = 1; + u_long nb; + + nb = 1; return ioctl(s, FIONBIO, &nb); } @@ -27,7 +29,9 @@ int ngx_nonblocking(ngx_socket_t s) int ngx_blocking(ngx_socket_t s) { - unsigned long nb = 0; + u_long nb; + + nb = 0; return ioctl(s, FIONBIO, &nb); } |