diff options
author | Ivan Zhakov <ivan@apache.org> | 2019-05-27 19:49:41 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2019-05-27 19:49:41 +0000 |
commit | eddb49fadba339cf57c910f82090a2f0c3205234 (patch) | |
tree | 0a5e4e9dc2e2c5b8cb4dfbb9225338ca6a9d18c7 /include/arch | |
parent | 7f2843c553ac9c73c34bdfe0f0f788096cba1afe (diff) | |
download | apr-eddb49fadba339cf57c910f82090a2f0c3205234.tar.gz |
Windows platform: Use WSAPoll directly.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860159 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch')
-rw-r--r-- | include/arch/win32/apr_arch_misc.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/arch/win32/apr_arch_misc.h b/include/arch/win32/apr_arch_misc.h index 4fbe79ff4..0f25b7995 100644 --- a/include/arch/win32/apr_arch_misc.h +++ b/include/arch/win32/apr_arch_misc.h @@ -303,38 +303,6 @@ APR_DECLARE_LATE_DLL_FUNC(DLL_WINBASEAPI, BOOL, WINAPI, Process32NextW, 0, ( (hSnapshot, lppe)); #define Process32NextW apr_winapi_Process32NextW -#if !defined(POLLERR) -/* Event flag definitions for WSAPoll(). */ -#define POLLRDNORM 0x0100 -#define POLLRDBAND 0x0200 -#define POLLIN (POLLRDNORM | POLLRDBAND) -#define POLLPRI 0x0400 - -#define POLLWRNORM 0x0010 -#define POLLOUT (POLLWRNORM) -#define POLLWRBAND 0x0020 - -#define POLLERR 0x0001 -#define POLLHUP 0x0002 -#define POLLNVAL 0x0004 - -typedef struct pollfd { - SOCKET fd; - SHORT events; - SHORT revents; - -} WSAPOLLFD, *PWSAPOLLFD, FAR *LPWSAPOLLFD; - -#endif /* !defined(POLLERR) */ -#ifdef WSAPoll -#undef WSAPoll -#endif -APR_DECLARE_LATE_DLL_FUNC(DLL_WINSOCK2API, int, WSAAPI, WSAPoll, 0, ( - IN OUT LPWSAPOLLFD fdArray, - IN ULONG fds, - IN INT timeout), - (fdArray, fds, timeout)); -#define WSAPoll apr_winapi_WSAPoll #define HAVE_POLL 1 #ifdef if_nametoindex |