minor fix on poll-msw.c and poll-msw.h for build against win10 sdk
This commit is contained in:
parent
ebe95aae9c
commit
4908576c02
@ -23,10 +23,11 @@
|
|||||||
# pragma GCC diagnostic ignored "-Wtype-limits"
|
# pragma GCC diagnostic ignored "-Wtype-limits"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "poll-msw.h"
|
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#include "poll-msw.h"
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "moo.h"
|
#include "moo.h"
|
||||||
|
|
||||||
|
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0600)
|
||||||
/* Event types that can be polled for. These bits may be set in `events'
|
/* Event types that can be polled for. These bits may be set in `events'
|
||||||
to indicate the interesting event types; they will appear in `revents'
|
to indicate the interesting event types; they will appear in `revents'
|
||||||
to indicate the status of the file descriptor. */
|
to indicate the status of the file descriptor. */
|
||||||
@ -30,9 +31,11 @@ struct pollfd
|
|||||||
an event to occur; if TIMEOUT is -1, block until an event occurs.
|
an event to occur; if TIMEOUT is -1, block until an event occurs.
|
||||||
Returns the number of file descriptors with events, zero if timed out,
|
Returns the number of file descriptors with events, zero if timed out,
|
||||||
or -1 for errors. */
|
or -1 for errors. */
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef unsigned long nfds_t;
|
typedef unsigned long nfds_t;
|
||||||
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user