]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-compat-util.h
Win32: detect unix socket support at runtime
[thirdparty/git.git] / git-compat-util.h
index 7c2a6538e5afea607f3d9a1c09cc6aea5539d8de..044f87454a291b116a436276ac812ac6fd5983e9 100644 (file)
@@ -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 <unistd.h>
 #include <stdio.h>
 #include <sys/stat.h>