mirror of https://github.com/moparisthebest/curl
Some versions of winsock2.h have pollfd struct and constants
This commit is contained in:
parent
e87c996fe0
commit
9a39839a43
|
@ -40,13 +40,16 @@
|
||||||
#undef HAVE_POLL_FINE
|
#undef HAVE_POLL_FINE
|
||||||
#define HAVE_POLL_FINE 1
|
#define HAVE_POLL_FINE 1
|
||||||
#define poll(x,y,z) WSAPoll((x),(y),(z))
|
#define poll(x,y,z) WSAPoll((x),(y),(z))
|
||||||
|
#if defined(_MSC_VER) && defined(POLLRDNORM)
|
||||||
|
#define HAVE_STRUCT_POLLFD 1
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Definition of pollfd struct and constants for platforms lacking them.
|
* Definition of pollfd struct and constants for platforms lacking them.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HAVE_SYS_POLL_H
|
#if !defined(HAVE_STRUCT_POLLFD) && !defined(HAVE_SYS_POLL_H)
|
||||||
|
|
||||||
#define POLLIN 0x01
|
#define POLLIN 0x01
|
||||||
#define POLLPRI 0x02
|
#define POLLPRI 0x02
|
||||||
|
|
Loading…
Reference in New Issue