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)
8989
9090# poll
9191
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 ()
9498
9599# determine architecture of the machine
96100
Original file line number Diff line number Diff line change 6262#cmakedefine GIT_RAND_GETLOADAVG 1
6363
6464#cmakedefine GIT_IO_POLL 1
65+ #cmakedefine GIT_IO_WSAPOLL 1
6566#cmakedefine GIT_IO_SELECT 1
6667
6768#endif
Original file line number Diff line number Diff line change @@ -198,6 +198,9 @@ extern const char *p_gai_strerror(int ret);
198198#ifdef GIT_IO_POLL
199199# include <poll.h>
200200# define p_poll poll
201+ #elif GIT_IO_WSAPOLL
202+ # include <winsock2.h>
203+ # define p_poll WSAPoll
201204#else
202205# define POLLIN 0x01
203206# define POLLPRI 0x02
You can’t perform that action at this time.
0 commit comments