libv4l: Support newer GCC and clang on SunOS.

This commit is contained in:
jperkin 2018-02-01 10:19:25 +00:00
parent 772e359263
commit 36a4fafe05

View file

@ -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"