]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-compat-util: include declaration for unix sockets in windows
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Tue, 14 Sep 2021 07:26:00 +0000 (00:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Sep 2021 16:30:54 +0000 (09:30 -0700)
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>
git-compat-util.h

index b46605300abf818d27bc04f8d0a727bc6a272330..6a420d104cb759dca709f9e347de6d3560e75ac8 100644 (file)
 # endif
 #define WIN32_LEAN_AND_MEAN  /* stops windows.h including winsock.h */
 #include <winsock2.h>
+#ifndef NO_UNIX_SOCKETS
+#include <afunix.h>
+#endif
 #include <windows.h>
 #define GIT_WINDOWS_NATIVE
 #endif