Added #define for WSAPoll

This commit is contained in:
Sergey Lyubka committed 2013-11-22 13:39:57 +00:00
1 parent e791a795b4
commit 0d2a8db626
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -187,13 +187,15 @@ typedef struct DIR {
struct dirent result;
} DIR;
#ifndef HAVE_POLL
struct pollfd {
SOCKET fd;
short events;
short revents;
};
#define POLLIN 1
#ifdef HAVE_POLL
#define poll(x, y, z) WSAPoll((x), (y), (z))
#endif
+3 -1
View File
@@ -187,13 +187,15 @@ typedef struct DIR {
struct dirent result;
} DIR;
#ifndef HAVE_POLL
struct pollfd {
SOCKET fd;
short events;
short revents;
};
#define POLLIN 1
#ifdef HAVE_POLL
#define poll(x, y, z) WSAPoll((x), (y), (z))
#endif