libv4l: Support newer GCC and clang on SunOS.
This commit is contained in:
parent
772e359263
commit
36a4fafe05
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue