aboutsummaryrefslogtreecommitdiff
path: root/lib/select.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-10 18:01:44 +0000
committerYang Tse <yangsita@gmail.com>2008-07-10 18:01:44 +0000
commit08ac9866e06ec06fd6e02d68461c7d5ab42a1fa0 (patch)
tree4404ae298141bc5dbf33e31082028a809e9df481 /lib/select.h
parenta17fadea3a324a65398780d88f41414ecfb169b0 (diff)
Peter Lamberg filed bug report #2015126: "poll gives WSAEINVAL when POLLPRI
is set in fdset.events" (http://curl.haxx.se/bug/view.cgi?id=2015126) which exactly pinpointed the problem only triggered on Windows Vista, provided reference to docs and also a fix. There is much work behind Peter Lamberg's excellent bug report. Thank You!
Diffstat (limited to 'lib/select.h')
-rw-r--r--lib/select.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/select.h b/lib/select.h
index 21ae02d72..cdc7782c2 100644
--- a/lib/select.h
+++ b/lib/select.h
@@ -37,14 +37,16 @@
#if defined(USE_WINSOCK) && (USE_WINSOCK > 1) && \
defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600)
-#undef HAVE_POLL
-#define HAVE_POLL 1
-#undef HAVE_POLL_FINE
-#define HAVE_POLL_FINE 1
-#define poll(x,y,z) WSAPoll((x),(y),(z))
-#if defined(_MSC_VER) && defined(POLLRDNORM)
-#define HAVE_STRUCT_POLLFD 1
-#endif
+# undef HAVE_POLL
+# define HAVE_POLL 1
+# undef HAVE_POLL_FINE
+# define HAVE_POLL_FINE 1
+# define poll(x,y,z) WSAPoll((x),(y),(z))
+# if defined(_MSC_VER) && defined(POLLRDNORM)
+# undef POLLPRI
+# define POLLPRI POLLRDBAND
+# define HAVE_STRUCT_POLLFD 1
+# endif
#endif
/*