Git development
 help / color / mirror / Atom feed
* [PATCH] minor Makefile and local-pull.c edits for Darwin
@ 2005-05-10  2:11 Mark Allen
  2005-05-10  4:23 ` Daniel Barkalow
  2005-05-10  4:30 ` H. Peter Anvin
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Allen @ 2005-05-10  2:11 UTC (permalink / raw)
  To: git

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 <mrallen1@yahoo.com>

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=<openssl/sha.h>
-       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;

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-05-10 21:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-10  2:11 [PATCH] minor Makefile and local-pull.c edits for Darwin Mark Allen
2005-05-10  4:23 ` Daniel Barkalow
2005-05-10  6:37   ` Junio C Hamano
2005-05-10  4:30 ` H. Peter Anvin
2005-05-10  6:44   ` Junio C Hamano
2005-05-10 14:43     ` H. Peter Anvin
2005-05-10 14:52       ` H. Peter Anvin
2005-05-10 21:05         ` Junio C Hamano
2005-05-10 21:12           ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox