From: Mark Allen Date: Tue, 10 May 2005 02:11:05 GMT Subject: [PATCH] minor Makefile and local-pull.c edits for Darwin Message-ID: <20050510021105.53984.qmail@web41213.mail.yahoo.com> Darwin puts all of the openssl functionality into libcrypto not libssl. Also, gcc complains about the st.size return value in local-pull.c if it's not cast explicitly as a long. Signed-off-by: Mark Allen Index: Makefile =================================================================== --- 972d8624458936868e6f392b40858b7c362af8cd/Makefile (mode:100644) +++ uncommitted/Makefile (mode:100644) @@ -80,7 +80,11 @@ LIB_OBJS += ppc/sha1.o ppc/sha1ppc.o else SHA1_HEADER= - LIBS += -lssl + ifdef DARWIN + LIBS += -lcrypto + else + LIBS += -lssl + endif endif endif Index: local-pull.c =================================================================== --- 972d8624458936868e6f392b40858b7c362af8cd/local-pull.c (mode:100644) +++ uncommitted/local-pull.c (mode:100644) @@ -71,7 +71,7 @@ close(ofd); if (status) fprintf(stderr, "cannot write %s (%ld bytes)\n", - dest_filename, st.st_size); + dest_filename, (long) st.st_size); else pull_say("copy %s\n", hex); return status;