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>