Skip to content

Commit 9a695fb

Browse files
prlw1gitster
authored andcommitted
NetBSD compilation fix
Similar to other BSD variants, it needs USE_ST_TIMESPEC. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent fe4a9c3 commit 9a695fb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ ifeq ($(uname_S),NetBSD)
764764
BASIC_CFLAGS += -I/usr/pkg/include
765765
BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
766766
THREADED_DELTA_SEARCH = YesPlease
767+
USE_ST_TIMESPEC = YesPlease
767768
endif
768769
ifeq ($(uname_S),AIX)
769770
NO_STRCASESTR=YesPlease

git-compat-util.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#define _ALL_SOURCE 1
4747
#define _GNU_SOURCE 1
4848
#define _BSD_SOURCE 1
49+
#define _NETBSD_SOURCE 1
4950

5051
#include <unistd.h>
5152
#include <stdio.h>

0 commit comments

Comments
 (0)