Skip to content

Commit

Permalink
git-compat-util: include declaration for unix sockets in windows
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
carenas authored and gitster committed Sep 14, 2021
1 parent 245670c commit bb390b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb390b1

Please sign in to comment.