]> git.kaiwu.me - nginx.git/commitdiff
ioctl FIONBIO uses int, so nginx did not work on big-endian 64-bit platforms
authorIgor Sysoev <igor@sysoev.ru>
Sat, 17 Feb 2007 19:53:52 +0000 (19:53 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 17 Feb 2007 19:53:52 +0000 (19:53 +0000)
src/os/unix/ngx_socket.c

index c2fbc3bed601c49203d962549dce4d5ea8fbbab7..27ae48dc509ce1735916703a51b733308df15e25 100644 (file)
@@ -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;