X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=git-compat-util.h;h=31b47932bd5144f306a9aa1b122fdf3cb0886284;hb=HEAD;hp=7c2a6538e5afea607f3d9a1c09cc6aea5539d8de;hpb=65973e4e995f1c7d3c71105edd0d9b6578a9e779;p=thirdparty%2Fgit.git diff --git a/git-compat-util.h b/git-compat-util.h index 7c2a6538e5..ca7678a379 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -218,6 +218,18 @@ struct strbuf; #define GIT_WINDOWS_NATIVE #endif +#if defined(NO_UNIX_SOCKETS) || !defined(GIT_WINDOWS_NATIVE) +static inline int _have_unix_sockets(void) +{ +#if defined(NO_UNIX_SOCKETS) + return 0; +#else + return 1; +#endif +} +#define have_unix_sockets _have_unix_sockets +#endif + #include #include #include @@ -391,6 +403,7 @@ char *gitdirname(char *); #ifndef NO_OPENSSL #ifdef __APPLE__ +#undef __AVAILABILITY_MACROS_USES_AVAILABILITY #define __AVAILABILITY_MACROS_USES_AVAILABILITY 0 #include #undef DEPRECATED_ATTRIBUTE