Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2019-01-24 21:51:21 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2019-01-24 21:51:21 +0300
commit40b74475d03603692e2a0f8d8391a2d5062eb718 (patch)
treecee040e26a5092b9a4f520cc167131eb9befd69a /auto
parentc6a0003af10cea67d6b6c3b087e384f79d353db3 (diff)
Win32: added WSAPoll() support.
WSAPoll() is only available with Windows Vista and newer (and only available during compilation if _WIN32_WINNT >= 0x0600). To make sure the code works with Windows XP, we do not redefine _WIN32_WINNT, but instead load WSAPoll() dynamically if it is not available during compilation. Also, sockets are not guaranteed to be small integers on Windows. So an index array is used instead of NGX_USE_FD_EVENT to map events to connections.
Diffstat (limited to 'auto')
-rw-r--r--auto/os/win321
-rw-r--r--auto/sources1
2 files changed, 2 insertions, 0 deletions
diff --git a/auto/os/win32 b/auto/os/win32
index b5c9c2a7b..61f3800af 100644
--- a/auto/os/win32
+++ b/auto/os/win32
@@ -11,6 +11,7 @@ CORE_SRCS="$WIN32_SRCS $IOCP_SRCS"
OS_CONFIG="$WIN32_CONFIG"
NGX_ICONS="$NGX_WIN32_ICONS"
SELECT_SRCS=$WIN32_SELECT_SRCS
+POLL_SRCS=$WIN32_POLL_SRCS
ngx_pic_opt=
ngx_binext=".exe"
diff --git a/auto/sources b/auto/sources
index 9b425063e..3dad11132 100644
--- a/auto/sources
+++ b/auto/sources
@@ -106,6 +106,7 @@ WIN32_SELECT_SRCS=src/event/modules/ngx_win32_select_module.c
POLL_MODULE=ngx_poll_module
POLL_SRCS=src/event/modules/ngx_poll_module.c
+WIN32_POLL_SRCS=src/event/modules/ngx_win32_poll_module.c
KQUEUE_MODULE=ngx_kqueue_module
KQUEUE_SRCS=src/event/modules/ngx_kqueue_module.c