summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2021-09-14 07:26:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-14 16:30:54 (GMT)
commitbb390b1f49406d967e8bf3401337cf1d9535f820 (patch)
tree4afcb4c76182ae1d52bfaefc905cdd41c73cce7f
parent245670cd46c4713818b5fbca2c084ce2e19f4ed8 (diff)
downloadgit-bb390b1f49406d967e8bf3401337cf1d9535f820.zip
git-bb390b1f49406d967e8bf3401337cf1d9535f820.tar.gz
git-bb390b1f49406d967e8bf3401337cf1d9535f820.tar.bz2
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>
-rw-r--r--git-compat-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index b466053..6a420d1 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 <winsock2.h>
+#ifndef NO_UNIX_SOCKETS
+#include <afunix.h>
+#endif
#include <windows.h>
#define GIT_WINDOWS_NATIVE
#endif