minor fix on poll-msw.c and poll-msw.h for build against win10 sdk

This commit is contained in:
hyunghwan.chung 2018-11-27 15:41:15 +00:00
parent ebe95aae9c
commit 4908576c02
2 changed files with 5 additions and 1 deletions

View File

@ -23,10 +23,11 @@
# pragma GCC diagnostic ignored "-Wtype-limits"
#endif
#include "poll-msw.h"
#include <winsock2.h>
#include <windows.h>
#include "poll-msw.h"
#include <sys/types.h>
#include <time.h>
#include <errno.h>

View File

@ -3,6 +3,7 @@
#include "moo.h"
#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0600)
/* 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 status of the file descriptor. */
@ -30,9 +31,11 @@ struct pollfd
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,
or -1 for errors. */
#endif
typedef unsigned long nfds_t;
#if defined(__cplusplus)
extern "C" {
#endif