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

Added #define for WSAPoll

parent e791a795
...@@ -187,13 +187,15 @@ typedef struct DIR { ...@@ -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
......
...@@ -187,13 +187,15 @@ typedef struct DIR { ...@@ -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
......
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