NetBSD compilation fix
Similar to other BSD variants, it needs USE_ST_TIMESPEC. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Welche committed
Apr 26, 2009 at 14:49 UTC
9a695fbf388263794ccbd16a342f4e2f8c5d400d
2 files changed
+2
Makefile
+1
@@ -764,6 +764,7 @@ ifeq ($(uname_S),NetBSD)
764
BASIC_CFLAGS += -I/usr/pkg/include
765
BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
766
THREADED_DELTA_SEARCH = YesPlease
767
+ USE_ST_TIMESPEC = YesPlease
768
endif
769
ifeq ($(uname_S),AIX)
770
NO_STRCASESTR=YesPlease
git-compat-util.h
+1
@@ -46,6 +46,7 @@
46
#define _ALL_SOURCE 1
47
#define _GNU_SOURCE 1
48
#define _BSD_SOURCE 1
49
+#define _NETBSD_SOURCE 1
50
51
#include <unistd.h>
52
#include <stdio.h>