From: Carlo Marcelo Arenas Belón Date: Tue, 14 Sep 2021 07:26:00 +0000 (-0700) Subject: git-compat-util: include declaration for unix sockets in windows X-Git-Tag: v2.34.0-rc0~124^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb390b1;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-compat-util.h b/git-compat-util.h index b46605300a..6a420d104c 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -160,6 +160,9 @@ # endif #define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */ #include +#ifndef NO_UNIX_SOCKETS +#include +#endif #include #define GIT_WINDOWS_NATIVE #endif