NetBSD needs _OPENBSD_SOURCE for reallocarray.

pull/581/head
Nicholas Marriott 2016-10-12 10:52:04 +01:00
parent 12efb40dc5
commit 76a9e6f27b
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ if IS_AIX
DEFS += -D_LINUX_SOURCE_COMPAT=1
endif
# Set flags for NetBSD.
if IS_NETBSD
CPPFLAGS += -D_OPENBSD_SOURCE
endif
# List of sources.
dist_tmux_SOURCES = \
alerts.c \