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

[PATCH v2] Makefile: Use libc strlcpy on OSX >= 10.2

From
Benjamin Kramer <benny.kra@googlemail.com>
Date
Jan 24, 2009, 19:01 UTC
Message-ID
<7f978c810901241101h227c5437p88ca7c9cc54abc9a@mail.gmail.com>

OSX supports strlcpy(3) since 10.2 so we don't need to use our own. This revised also patch checks the darwin version. 10.0 is darwin v1.3; 10.1 is darwin v1.4.

Signed-off-by: Benjamin Kramer <benny.kra@gmail.com>
---
 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index b4d9cb4..7dd5224 100644
--- a/Makefile
+++ b/Makefile
@@ -643,7 +643,9 @@ ifeq ($(uname_S),Darwin)
 	ifneq ($(shell expr "$(uname_R)" : '9\.'),2)
 		OLD_ICONV = UnfortunatelyYes
 	endif
-	NO_STRLCPY = YesPlease
+	ifeq ($(shell expr "$(uname_R)" : '1\.'),2)
+		NO_STRLCPY = YesPlease
+	endif
 	NO_MEMMEM = YesPlease
 	THREADED_DELTA_SEARCH = YesPlease
 endif
-- 
1.6.1.285.g3454
Next: Junio C Hamano
Message 1 of 3 in “Makefile: Use libc strlcpy on OSX >= 10.2”
  1. Makefile: Use libc strlcpy on OSX >= 10.2Benjamin Kramer, Jan 24, 2009
  2. Junio C HamanoJan 24, 2009
  3. Benjamin KramerJan 24, 2009

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.