aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_socket.c')
-rw-r--r--src/os/unix/ngx_socket.c8
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);
}