mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Added #define for WSAPoll
This commit is contained in:
1 parent
e791a795b4
commit
0d2a8db626
2 files changed
+6
-2
No files matched your search
@@ -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
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user