Skip to content

Commit

Permalink
NetBSD compilation fix
Browse files Browse the repository at this point in the history
Similar to other BSD variants, it needs USE_ST_TIMESPEC.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
prlw1 authored and gitster committed Apr 27, 2009
1 parent fe4a9c3 commit 9a695fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions git-compat-util.h
Expand Up @@ -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>
Expand Down

0 comments on commit 9a695fb

Please sign in to comment.