From 441bd6c4691bb514e157a1416ce926432086b1ab Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 3 Apr 2022 23:17:54 +0200 Subject: [PATCH] package/gstreamer1/gstd: fix build with gcc 4.8 Fix the following build failure with gcc 4.8 raised since bump to version 0.14.0 in commit a334b9a7668ba412cb2da79b75a019cd89985145 and https://github.com/RidgeRun/gstd-1.x/commit/e83c94920bb33846ff0642dcf070fc5fd124e4f6: ../libgstd/libgstd.c: In function 'gstd_set_ipc': ../libgstd/libgstd.c:119:5: error: 'for' loop initial declarations are only allowed in C99 mode for (gint ipc_idx = 0; ipc_idx < num_ipcs; ipc_idx++) { ^ Fixes: - http://autobuild.buildroot.org/results/00ad1b8979000aa10a20228c998389bc913cbbd4 Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/gstreamer1/gstd/gstd.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/gstreamer1/gstd/gstd.mk b/package/gstreamer1/gstd/gstd.mk index 08a29f26ff..817e9143ae 100644 --- a/package/gstreamer1/gstd/gstd.mk +++ b/package/gstreamer1/gstd/gstd.mk @@ -28,6 +28,8 @@ GSTD_CONF_OPTS = \ -Dwith-gstd-logstatedir=/var/log/gstd \ -Dwith-gstd-systemddir=/usr/lib/systemd/system +GSTD_CFLAGS = $(TARGET_CFLAGS) -std=gnu99 + ifeq ($(BR2_PACKAGE_SYSTEMD),y) GSTD_CONF_OPTS += -Denable-systemd=enabled -Denable-initd=disabled GSTD_DEPENDENCIES += systemd