Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
9908c076
Commit
9908c076
authored
May 12, 2023
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
posix: use WSAPoll on win32
parent
94f98400
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
src/CMakeLists.txt
+6
-2
src/util/git2_features.h.in
+1
-0
src/util/posix.h
+3
-0
No files found.
src/CMakeLists.txt
View file @
9908c076
...
...
@@ -89,8 +89,12 @@ check_function_exists(getloadavg GIT_RAND_GETLOADAVG)
# poll
check_symbol_exists
(
poll poll.h GIT_IO_POLL
)
check_symbol_exists
(
select sys/select.h GIT_IO_SELECT
)
if
(
WIN32
)
set
(
GIT_IO_WSAPOLL 1
)
else
()
check_symbol_exists
(
poll poll.h GIT_IO_POLL
)
check_symbol_exists
(
select sys/select.h GIT_IO_SELECT
)
endif
()
# determine architecture of the machine
...
...
src/util/git2_features.h.in
View file @
9908c076
...
...
@@ -62,6 +62,7 @@
#cmakedefine GIT_RAND_GETLOADAVG 1
#cmakedefine GIT_IO_POLL 1
#cmakedefine GIT_IO_WSAPOLL 1
#cmakedefine GIT_IO_SELECT 1
#endif
src/util/posix.h
View file @
9908c076
...
...
@@ -198,6 +198,9 @@ extern const char *p_gai_strerror(int ret);
#ifdef GIT_IO_POLL
# include <poll.h>
# define p_poll poll
#elif GIT_IO_WSAPOLL
# include <winsock2.h>
# define p_poll WSAPoll
#else
# define POLLIN 0x01
# define POLLPRI 0x02
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment