projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87c996
)
Some versions of winsock2.h have pollfd struct and constants
author
Yang Tse
<yangsita@gmail.com>
Sat, 10 Nov 2007 04:23:15 +0000
(
04:23
+0000)
committer
Yang Tse
<yangsita@gmail.com>
Sat, 10 Nov 2007 04:23:15 +0000
(
04:23
+0000)
lib/select.h
patch
|
blob
|
history
diff --git
a/lib/select.h
b/lib/select.h
index
a97947e
..
54c7c75
100644
(file)
--- a/
lib/select.h
+++ b/
lib/select.h
@@
-40,13
+40,16
@@
#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
#endif
/*
* Definition of pollfd struct and constants for platforms lacking them.
*/
-#if
ndef HAVE_SYS_POLL_H
+#if
!defined(HAVE_STRUCT_POLLFD) && !defined(HAVE_SYS_POLL_H)
#define POLLIN 0x01
#define POLLPRI 0x02