Thu Feb 1 10:19:25 2018 UTC ()
libv4l: Support newer GCC and clang on SunOS.


(jperkin)
diff -r1.14 -r1.15 pkgsrc/graphics/libv4l/Makefile

cvs diff -r1.14 -r1.15 pkgsrc/graphics/libv4l/Makefile (expand / switch to context diff)
--- pkgsrc/graphics/libv4l/Makefile 2017/11/06 13:39:17 1.14
+++ pkgsrc/graphics/libv4l/Makefile 2018/02/01 10:19:25 1.15
@@ -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 @@
 
 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"