summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c505f7)
raw | patch | inline | side by side (parent: 4c505f7)
author | hpa <hpa@bonde.sc.orionmulti.com> | |
Wed, 28 Sep 2005 23:52:21 +0000 (16:52 -0700) | ||
committer | hpa <hpa@bonde.sc.orionmulti.com> | |
Wed, 28 Sep 2005 23:52:21 +0000 (16:52 -0700) |
Makefile | patch | blob | history | |
connect.c | patch | blob | history |
diff --git a/Makefile b/Makefile
index 55b06f276b519522c8049f9eb946ae683e536abe..be5c0a860599b16264ab95abd75f51776116aafc 100644 (file)
--- a/Makefile
+++ b/Makefile
#
# Define WITH_OWN_SUBPROCESS_PY if you want to use with python 2.3.
#
+# Define NO_IPV6 if you lack IPv6 support and getaddrinfo().
+#
# Define COLLISION_CHECK below if you believe that SHA1's
# 1461501637330902918203684832716283019655932542976 hashes do not give you
# sufficient guarantee that no collisions between objects will ever happen.
# The ones that do not have to link with lcrypto nor lz.
SIMPLE_PROGRAMS = \
git-get-tar-commit-id git-mailinfo git-mailsplit git-stripspace \
- git-daemon git-var
+ git-var
+ifndef NO_IPV6
+# Not supported to IPv6-challenged platforms yet
+SIMPLE_PROGRAMS += git-daemon
+endif
# ... and all the rest
PROGRAMS = \
ifeq ($(shell uname -o),Cygwin)
NO_STRCASESTR = YesPlease
NEEDS_LIBICONV = YesPlease
+ NO_IPV6 = YesPlease
endif
ifneq (,$(findstring arm,$(shell uname -m)))
ARM_SHA1 = YesPlease
DEFINES += -Dstrcasestr=gitstrcasestr
LIB_OBJS += compat/strcasestr.o
endif
+ifdef NO_IPV6
+ DEFINES += -DNO_IPV6
+endif
ifdef PPC_SHA1
SHA1_HEADER = "ppc/sha1.h"
diff --git a/connect.c b/connect.c
index 0e6f27ea0a07ef0ba9b339c447271b337a9e5a5b..39d320ce280f4448b52865cc5386acc2099744c7 100644 (file)
--- a/connect.c
+++ b/connect.c
#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)
{
return 0;
}
-#else /* __CYGWIN__ */
+#else /* NO_IPV6 */
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.