From b4123b94ff3fe732c7df33ba6c010f0137d7d6e5 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 17 Feb 2007 19:53:52 +0000 Subject: [PATCH] ioctl FIONBIO uses int, so nginx did not work on big-endian 64-bit platforms --- src/os/unix/ngx_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;