diff options
author | fhajny <fhajny> | 2012-06-11 12:52:52 +0000 |
---|---|---|
committer | fhajny <fhajny> | 2012-06-11 12:52:52 +0000 |
commit | 26825cce624814983236c3db2856fa78f538b968 (patch) | |
tree | 2c32202202bdeb58db8a01bb4c5d9b9853f850b0 /misc/tmux | |
parent | 5f88097d66ad9480a7a8c773fe9fc461726a8ef9 (diff) | |
download | pkgsrc-26825cce624814983236c3db2856fa78f538b968.tar.gz |
Fix build on SunOS and GCC>=4.6
Diffstat (limited to 'misc/tmux')
-rw-r--r-- | misc/tmux/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/misc/tmux/Makefile b/misc/tmux/Makefile index 58475e3f9d5..ea48b930ac2 100644 --- a/misc/tmux/Makefile +++ b/misc/tmux/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2012/01/28 23:04:53 christos Exp $ +# $NetBSD: Makefile,v 1.18 2012/06/11 13:00:14 fhajny Exp $ DISTNAME= tmux-1.6 CATEGORIES= misc @@ -14,6 +14,13 @@ PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= yes USE_TERMINFO= yes +.include "../../mk/bsd.prefs.mk" +.include "../../mk/compiler.mk" +.if !empty(MACHINE_PLATFORM:MSunOS-5.1[0-9]-*) && \ + !empty(CC_VERSION:Mgcc-4.[6-9].*) +BUILDLINK_TRANSFORM+= rename:-D_XPG4_2:-D_XPG6 +.endif + .include "../../devel/libevent/buildlink3.mk" BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1b .include "../../mk/terminfo.buildlink3.mk" |