summaryrefslogtreecommitdiffhomepage
path: root/src/os/win32/ngx_socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32/ngx_socket.h')
-rw-r--r--src/os/win32/ngx_socket.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/os/win32/ngx_socket.h b/src/os/win32/ngx_socket.h
index 4ce60a7f3..d49ad2c15 100644
--- a/src/os/win32/ngx_socket.h
+++ b/src/os/win32/ngx_socket.h
@@ -19,12 +19,8 @@ typedef SOCKET ngx_socket_t;
typedef int socklen_t;
-#define ngx_socket(af, type, proto, flags) socket(af, type, proto)
-
-#if 0
-#define ngx_socket(af, type, proto, flags) \
- WSASocket(af, type, proto, NULL, 0, flags)
-#endif
+#define ngx_socket(af, type, proto) \
+ WSASocket(af, type, proto, NULL, 0, WSA_FLAG_OVERLAPPED)
#define ngx_socket_n "WSASocket()"