commit | b4123b94ff3fe732c7df33ba6c010f0137d7d6e5 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Sat Feb 17 19:53:52 2007 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Sat Feb 17 19:53:52 2007 +0000 |
tree | 4ec2d9faeb0a492ff5b3bf8e42b2e98e517d117c | |
parent | 5473662c947f3b140ae9f068e1635191fc71fca9 [diff] |
ioctl FIONBIO uses int, so nginx did not work on big-endian 64-bit platforms
diff --git a/src/os/unix/ngx_socket.c b/src/os/unix/ngx_socket.c index c2fbc3b..27ae48d 100644 --- a/src/os/unix/ngx_socket.c +++ b/src/os/unix/ngx_socket.c
@@ -25,7 +25,7 @@ int ngx_nonblocking(ngx_socket_t s) { - u_long nb; + int nb; nb = 1; @@ -36,7 +36,7 @@ int ngx_blocking(ngx_socket_t s) { - u_long nb; + int nb; nb = 0;