From 59e4e3f72b79823d36812e2a89effdec9f00342a Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 12 Jul 2017 15:58:50 +0100 Subject: [PATCH] build: Add -std=gnu99 to libglnx CFLAGS It uses inline for loop initialisers, which are a C99 feature. Set -std=gnu99 like ostree.git does for its libglnx submodule. Based on a patch by Georges Basile Stavracas Neto . Signed-off-by: Philip Withnall --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index e5ae9f23..6fa61aa6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,6 +79,7 @@ libglnx_srcpath := $(srcdir)/libglnx libglnx_cflags := \ $(BASE_CFLAGS) \ "-I$(libglnx_srcpath)" \ + -std=gnu99 \ $(HIDDEN_VISIBILITY_CFLAGS) \ $(NULL) libglnx_libs := $(BASE_LIBS)