Skip to content

Commit bb390b1

Browse files
carenasgitster
authored andcommitted
git-compat-util: include declaration for unix sockets in windows
Available since Windows 10 release 1803 and Windows Server 2019. NO_UNIX_SOCKETS is still the default for Windows builds, as they need to keep backward compatibility with releases up to Windows 7, but allow including the header otherwise. Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 245670c commit bb390b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-compat-util.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@
160160
# endif
161161
#define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */
162162
#include <winsock2.h>
163+
#ifndef NO_UNIX_SOCKETS
164+
#include <afunix.h>
165+
#endif
163166
#include <windows.h>
164167
#define GIT_WINDOWS_NATIVE
165168
#endif

0 commit comments

Comments
 (0)