pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/tmux NetBSD needs -D_OPENBSD_SOURCE for reallocar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e1632a902874
branches:  trunk
changeset: 353752:e1632a902874
user:      leot <leot%pkgsrc.org@localhost>
date:      Wed Oct 12 10:11:23 2016 +0000

description:
NetBSD needs -D_OPENBSD_SOURCE for reallocarray(3). Pass it via CPPFLAGS.NetBSD.

PKGREVISION++

diffstat:

 misc/tmux/Makefile |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 2b05f53aabbc -r e1632a902874 misc/tmux/Makefile
--- a/misc/tmux/Makefile        Wed Oct 12 00:30:32 2016 +0000
+++ b/misc/tmux/Makefile        Wed Oct 12 10:11:23 2016 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index