mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +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;
|
||||
} 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
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user