From 122f74d333c65876057bceab0b316569d3964629 Mon Sep 17 00:00:00 2001 From: nia Date: Fri, 9 Apr 2021 21:22:29 +0000 Subject: [PATCH] gtk3: now assumes compiler defaults to c99 --- x11/gtk3/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x11/gtk3/Makefile b/x11/gtk3/Makefile index 75eb1fc34b7a..c689e4ca08fd 100644 --- a/x11/gtk3/Makefile +++ b/x11/gtk3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.160 2021/04/01 07:02:23 adam Exp $ +# $NetBSD: Makefile,v 1.161 2021/04/09 21:22:29 nia Exp $ DISTNAME= gtk+-3.24.28 PKGNAME= ${DISTNAME:S/gtk/gtk3/} @@ -11,6 +11,7 @@ HOMEPAGE= https://www.gtk.org/ COMMENT= GIMP Toolkit v3 - libraries for building X11 user interfaces LICENSE= gnu-lgpl-v2.1 +# "error: 'for' loop initial declarations are only allowed in C99 mode" USE_LANGUAGES= c c++ USE_LIBTOOL= yes USE_PKGLOCALEDIR= yes @@ -52,7 +53,8 @@ BUILD_DIRS= . demos/gtk-demo CONFIGURE_ENV.DragonFly+= ac_cv_func_isinf=yes CONFIGURE_ENV.DragonFly+= ac_cv_func_isnan=yes -CFLAGS.SunOS+= -std=gnu99 +# "error: 'for' loop initial declarations are only allowed in C99 mode" +CFLAGS+= -std=gnu99 CPPFLAGS+= -DPREFIX="\"${PREFIX}\""