aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_socket.h')
-rw-r--r--src/os/unix/ngx_socket.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/os/unix/ngx_socket.h b/src/os/unix/ngx_socket.h
index e9e797474..f3fffd694 100644
--- a/src/os/unix/ngx_socket.h
+++ b/src/os/unix/ngx_socket.h
@@ -9,11 +9,14 @@ typedef int ngx_socket_t;
#define ngx_init_sockets
+#define ngx_socket(af, type, proto, flags) socket(af, type, proto)
+#define ngx_socket_n "socket()"
+
#define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK)
-#define ngx_nonblocking_n "fcntl (O_NONBLOCK)"
+#define ngx_nonblocking_n "fcntl(O_NONBLOCK)"
#define ngx_close_socket close
-#define ngx_close_socket_n "close"
+#define ngx_close_socket_n "close()"
#endif /* _NGX_SOCKET_H_INCLUDED_ */