File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,12 @@ check_function_exists(getloadavg GIT_RAND_GETLOADAVG)
89
89
90
90
# poll
91
91
92
- check_symbol_exists(poll poll.h GIT_IO_POLL)
93
- check_symbol_exists(select sys/select.h GIT_IO_SELECT)
92
+ if (WIN32 )
93
+ set (GIT_IO_WSAPOLL 1)
94
+ else ()
95
+ check_symbol_exists(poll poll.h GIT_IO_POLL)
96
+ check_symbol_exists(select sys/select.h GIT_IO_SELECT)
97
+ endif ()
94
98
95
99
# determine architecture of the machine
96
100
Original file line number Diff line number Diff line change 62
62
#cmakedefine GIT_RAND_GETLOADAVG 1
63
63
64
64
#cmakedefine GIT_IO_POLL 1
65
+ #cmakedefine GIT_IO_WSAPOLL 1
65
66
#cmakedefine GIT_IO_SELECT 1
66
67
67
68
#endif
Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ extern const char *p_gai_strerror(int ret);
198
198
#ifdef GIT_IO_POLL
199
199
# include <poll.h>
200
200
# define p_poll poll
201
+ #elif GIT_IO_WSAPOLL
202
+ # include <winsock2.h>
203
+ # define p_poll WSAPoll
201
204
#else
202
205
# define POLLIN 0x01
203
206
# define POLLPRI 0x02
You can’t perform that action at this time.
0 commit comments