summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 148519b)
raw | patch | inline | side by side (parent: 148519b)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Thu, 28 Jul 2005 14:51:41 +0000 (16:51 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 29 Jul 2005 07:12:03 +0000 (00:12 -0700) |
On older Mac OS X (10.2.8), no socklen_t is defined, and therefore
daemon.c does not compile. However, Mac OS X 10.4 seems to define
socklen_t differently.
Also, linking fails due to some symbols defined in libssl (not just
libcrypto).
[jc: I am tentatively dropping the socklen_t part of the patch
because I am waiting for confirmation on the server side IPV6
patch from Yoshifuji-san]
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c does not compile. However, Mac OS X 10.4 seems to define
socklen_t differently.
Also, linking fails due to some symbols defined in libssl (not just
libcrypto).
[jc: I am tentatively dropping the socklen_t part of the patch
because I am waiting for confirmation on the server side IPV6
patch from Yoshifuji-san]
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index f50ad72399ea41aa34c88611166992df445e5d7c..f580576b24ba5ff3abbc9ff512cf78db97ab5bc0 100644 (file)
--- a/Makefile
+++ b/Makefile
LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o
else
SHA1_HEADER=<openssl/sha.h>
+ifeq ($(shell uname -s),Darwin)
+ LIBS += -lcrypto -lssl
+else
LIBS += -lcrypto
endif
endif
+endif
CFLAGS += '-DSHA1_HEADER=$(SHA1_HEADER)'