diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-09-24 10:41:00 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-09-24 10:41:00 +0000 |
commit | 1fa3a5cce937168eaa3be11f7949ed046390afa7 (patch) | |
tree | f4a0c3c98a6cf545242182f408835fd8234e0c0d /lib/select.h | |
parent | fe8aee6b084f14a1e0630ded7bf3f7ec7f0290cf (diff) | |
download | curl-1fa3a5cce937168eaa3be11f7949ed046390afa7.tar.gz |
Cory Nelson made libcurl use the WSAPoll() function if built for Windows
Vista (_WIN32_WINNT >= 0x0600)
Diffstat (limited to 'lib/select.h')
-rw-r--r-- | lib/select.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/select.h b/lib/select.h index f448b8460..e0844b1d6 100644 --- a/lib/select.h +++ b/lib/select.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -25,6 +25,10 @@ #ifdef HAVE_SYS_POLL_H #include <sys/poll.h> +#elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600) +/* for Vista, use WSAPoll(). */ +#include <winsock2.h> +#define CURL_HAVE_WSAPOLL #else #define POLLIN 0x01 |