From: Igor Sysoev Date: Sat, 17 Feb 2007 19:53:52 +0000 (+0000) Subject: ioctl FIONBIO uses int, so nginx did not work on big-endian 64-bit platforms X-Git-Tag: release-0.5.13~2 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=b4123b94ff3fe732c7df33ba6c010f0137d7d6e5;p=nginx.git 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 c2fbc3bed..27ae48dc5 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 @@ ngx_nonblocking(ngx_socket_t s) int ngx_blocking(ngx_socket_t s) { - u_long nb; + int nb; nb = 0;