comparison auto/os/win32 @ 7444:4089b3d2cb59

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 24 Jan 2019 21:51:21 +0300
parents f3ff79ae31d9
children c9235164bbf1
comparison
equal deleted inserted replaced
7443:f3ff79ae31d9 7444:4089b3d2cb59
9 CORE_DEPS="$WIN32_DEPS" 9 CORE_DEPS="$WIN32_DEPS"
10 CORE_SRCS="$WIN32_SRCS $IOCP_SRCS" 10 CORE_SRCS="$WIN32_SRCS $IOCP_SRCS"
11 OS_CONFIG="$WIN32_CONFIG" 11 OS_CONFIG="$WIN32_CONFIG"
12 NGX_ICONS="$NGX_WIN32_ICONS" 12 NGX_ICONS="$NGX_WIN32_ICONS"
13 SELECT_SRCS=$WIN32_SELECT_SRCS 13 SELECT_SRCS=$WIN32_SELECT_SRCS
14 POLL_SRCS=$WIN32_POLL_SRCS
14 15
15 ngx_pic_opt= 16 ngx_pic_opt=
16 ngx_binext=".exe" 17 ngx_binext=".exe"
17 18
18 case "$NGX_CC_NAME" in 19 case "$NGX_CC_NAME" in