From 9a695fbf388263794ccbd16a342f4e2f8c5d400d Mon Sep 17 00:00:00 2001 From: Patrick Welche Date: Sun, 26 Apr 2009 14:49:00 +0100 Subject: [PATCH] NetBSD compilation fix Similar to other BSD variants, it needs USE_ST_TIMESPEC. Signed-off-by: Junio C Hamano --- Makefile | 1 + git-compat-util.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f006d2ccad..bb15c6b929 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 785aa31b46..1ac16bde5a 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 #include -- 2.11.4.GIT