summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorleot <leot>2016-10-12 10:11:23 +0000
committerleot <leot>2016-10-12 10:11:23 +0000
commit216187e51d15e40207366b8a6e4cf82fe67ecf6a (patch)
tree5f8645f2f9590ccc7f9ca9dfdab25cdf7899e9df /misc
parent49e71ee90407d2cc89c8c6bbcbc63c13cc954e89 (diff)
downloadpkgsrc-216187e51d15e40207366b8a6e4cf82fe67ecf6a.tar.gz
NetBSD needs -D_OPENBSD_SOURCE for reallocarray(3). Pass it via CPPFLAGS.NetBSD.
PKGREVISION++
Diffstat (limited to 'misc')
-rw-r--r--misc/tmux/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/tmux/Makefile b/misc/tmux/Makefile
index 704acc311e3..b58e8436f18 100644
--- a/misc/tmux/Makefile
+++ b/misc/tmux/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.37 2016/10/04 10:42:47 fhajny Exp $
+# $NetBSD: Makefile,v 1.38 2016/10/12 10:11:23 leot Exp $
DISTNAME= tmux-2.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_GITHUB:=tmux/}
@@ -29,6 +29,10 @@ BUILDLINK_TRANSFORM+= opt:-D_XPG4_2:-D_XPG6
CPPFLAGS+= -D__DARWIN_VERS_1050=0
.endif
+# XXX: This will not needed for tmux-2.3 because a different fix
+# XXX: was applied by upstream!
+CPPFLAGS.NetBSD+= -D_OPENBSD_SOURCE # for reallocarray(3)
+
.include "../../devel/libevent/buildlink3.mk"
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0.10
.include "../../mk/curses.buildlink3.mk"