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