aboutsummaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorhpa <hpa@bonde.sc.orionmulti.com>2005-09-28 16:52:21 -0700
committerhpa <hpa@bonde.sc.orionmulti.com>2005-09-28 16:52:21 -0700
commit49744d63e9c5ffdfb4677bd3aaeafb3371c3fdc1 (patch)
tree51eaa507ebb907af113e13b1adb1725798cf85aa /connect.c
parent4c505f71e60b9d152a3a9d7a59b8b5146991a288 (diff)
downloadgit-49744d63e9c5ffdfb4677bd3aaeafb3371c3fdc1.tar.gz
git-49744d63e9c5ffdfb4677bd3aaeafb3371c3fdc1.tar.xz
Call it NO_IPV6 rather than hard-coding __CYGWIN__
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/connect.c b/connect.c
index 0e6f27ea0..39d320ce2 100644
--- a/connect.c
+++ b/connect.c
@@ -290,7 +290,7 @@ static enum protocol get_protocol(const char *name)
#define STR_(s) # s
#define STR(s) STR_(s)
-#ifndef __CYGWIN__
+#ifndef NO_IPV6
static int git_tcp_connect(int fd[2], const char *prog, char *host, char *path)
{
@@ -348,7 +348,7 @@ static int git_tcp_connect(int fd[2], const char *prog, char *host, char *path)
return 0;
}
-#else /* __CYGWIN__ */
+#else /* NO_IPV6 */
static int git_tcp_connect(int fd[2], const char *prog, char *host, char *path)
{
@@ -417,7 +417,7 @@ static int git_tcp_connect(int fd[2], const char *prog, char *host, char *path)
return 0;
}
-#endif /* __CYGWIN__ */
+#endif /* NO_IPV6 */
/*
* Yeah, yeah, fixme. Need to pass in the heads etc.