diff options
author | richard <richard> | 2014-08-27 16:14:27 +0000 |
---|---|---|
committer | richard <richard> | 2014-08-27 16:14:27 +0000 |
commit | f116242c4d3ec2009590460fa91ad2e803e7b607 (patch) | |
tree | d3eb5986f4e49ecb33db910599cf31ff124945c4 /misc/screen | |
parent | 66ed5ebadec0195a4eca74fc718684dd090b6398 (diff) | |
download | pkgsrc-f116242c4d3ec2009590460fa91ad2e803e7b607.tar.gz |
SunOS needs at least XPG4_2 to expose some structs from <sys/socket.h>
namely msg_control and msg_controllen. Use XPG5 with _XOPEN_SOURCE=500
for simplicity.
Diffstat (limited to 'misc/screen')
-rw-r--r-- | misc/screen/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/screen/Makefile b/misc/screen/Makefile index 6e58aae0a08..bceeeec1daa 100644 --- a/misc/screen/Makefile +++ b/misc/screen/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.88 2014/08/25 20:02:32 kim Exp $ +# $NetBSD: Makefile,v 1.89 2014/08/27 16:14:27 richard Exp $ DISTNAME= screen-4.2.1 #PKGREVISION= @@ -35,10 +35,13 @@ SUBST_STAGE.paths= post-patch PLIST_VARS+= terminfo -.if ${OPSYS} == "SunOS" && ${CURSES_DEFAULT} == "curses" +.if ${OPSYS} == "SunOS" +CPPFLAGS+= -D_XOPEN_SOURCE=500 +. if ${CURSES_DEFAULT} == "curses" INSTALLATION_DIRS+= share/lib/terminfo PLIST.terminfo= yes post-install: screen-terminfo +. endif .endif .if empty(UNPRIVILEGED:M[Yy][Ee][Ss]) |