diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-02-01 10:19:25 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-02-01 10:19:25 +0000 |
commit | 203440135aab7072dcc5dd3dad3b8a6ba1b89ddc (patch) | |
tree | 2a26e4614f2c3ca2ff34e1221fdda17b9db7debb /graphics | |
parent | d84defffa1d71224feb4ce278f49b029f728e349 (diff) | |
download | pkgsrc-203440135aab7072dcc5dd3dad3b8a6ba1b89ddc.tar.gz |
libv4l: Support newer GCC and clang on SunOS.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libv4l/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/libv4l/Makefile b/graphics/libv4l/Makefile index 7a55d02c0f5..e88ae0efadd 100644 --- a/graphics/libv4l/Makefile +++ b/graphics/libv4l/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2017/11/06 13:39:17 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2018/02/01 10:19:25 jperkin Exp $ DISTNAME= libv4l-0.4.3 PKGREVISION= 3 @@ -38,7 +38,11 @@ pre-configure: PLIST_VARS= needs_videoio +.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*) +CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 +.else CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=500 +.endif .include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |