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.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/os/unix/ngx_socket.c b/src/os/unix/ngx_socket.c
index d213fa86f..0746fa0ec 100644
--- a/src/os/unix/ngx_socket.c
+++ b/src/os/unix/ngx_socket.c
@@ -2,12 +2,15 @@
#include <ngx_socket.h>
-/* ioctl(FIONBIO) set blocking mode with one syscall only while
+/*
+ ioctl(FIONBIO) set blocking mode with one syscall only while
fcntl(F_SETFL, ~O_NONBLOCK) need to know previous state
using fcntl(F_GETFL).
- On FreeBSD both are syscall */
-#ifdef __FreeBSD__
+ ioctl() and fcntl() are syscalls on FreeBSD, Solaris 7/8 and Linux
+*/
+
+#if 1
int ngx_nonblocking(ngx_socket_t s)
{