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

compiling on netbsd

From
PWPatrick Welche <prlw1@cam.ac.uk>
Date
Apr 26, 2009, 13:49 UTC
Message-ID
<20090426134900.GB454@quartz.inf.phy.cam.ac.uk>

I found I needed to add the following patch in order to compile today's git source under NetBSD-current (5.99.11)

Cheers,
Patrick
diff --git a/Makefile b/Makefile
index 5c8e83a..25d2b9c 100644
--- a/Makefile
+++ b/Makefile
@@ -764,6 +764,7 @@ ifeq ($(uname_S),NetBSD)
 	BASIC_CFLAGS += -I/usr/pkg/include
 	BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
 	THREADED_DELTA_SEARCH = YesPlease
+	USE_ST_TIMESPEC = YesPlease
 endif
 ifeq ($(uname_S),AIX)
 	NO_STRCASESTR=YesPlease
diff --git a/git-compat-util.h b/git-compat-util.h
index 785aa31..1ac16bd 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -46,6 +46,7 @@
 #define _ALL_SOURCE 1
 #define _GNU_SOURCE 1
 #define _BSD_SOURCE 1
+#define _NETBSD_SOURCE 1
 
 #include <unistd.h>
 #include <stdio.h>
Next: Junio C Hamano
Message 1 of 2 in “compiling on netbsd”
  1. Patrick WelcheApr 26, 2009
  2. Junio C HamanoApr 27, 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.