git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] minor Makefile and local-pull.c edits for Darwin

From
MAMark Allen <mrallen1@yahoo.com>
Date
May 10, 2005, 02:11 UTC
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 <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;
Next: Daniel Barkalow
Message 1 of 9 in “minor Makefile and local-pull.c edits for Darwin”
  1. minor Makefile and local-pull.c edits for DarwinMark Allen, May 10, 2005
  2. Daniel BarkalowMay 10, 2005
  3. Junio C HamanoMay 10, 2005
  4. H. Peter AnvinMay 10, 2005
  5. Junio C HamanoMay 10, 2005
  6. H. Peter AnvinMay 10, 2005
  7. H. Peter AnvinMay 10, 2005
  8. Junio C HamanoMay 10, 2005
  9. H. Peter AnvinMay 10, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.