gvfs: Support GCC >= 10.

This commit is contained in:
jperkin 2021-09-28 13:00:13 +00:00
parent e9f20c268e
commit 3afeaf9008

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.116 2021/04/21 13:25:22 adam Exp $
# $NetBSD: Makefile,v 1.117 2021/09/28 13:00:13 jperkin Exp $
#
DISTNAME= gvfs-1.6.7
@ -72,7 +72,7 @@ BUILDLINK_TRANSFORM+= rm:-DG_DISABLE_DEPRECATED
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*)
.if !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(CC_VERSION:Mgcc-1[0-9].*)
CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
.else
CFLAGS.SunOS+= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__