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" # 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>

View File

@ -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