Commit 0d2a8db6 authored by Sergey Lyubka's avatar Sergey Lyubka

Added #define for WSAPoll

parent e791a795
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment