[Buildroot] [git commit] package/sslh: fix build with gcc 4.8

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Jan 26 22:05:55 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=96c6ccb49808c312a7dfbd12edf08716de621405
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix the following build failure raised since bump to version 1.22c in
commit 5b9c58531e97b012a8a11c6ae5145b16dcfb8f74:

sslh-select.c: In function 'udp_timeouts':
sslh-select.c:480:5: error: 'for' loop initial declarations are only allowed in C99 mode
     for (int i = 0; i < fd_info->max_fd; i++) {
     ^

Fixes:
 - http://autobuild.buildroot.org/results/aaaac2beb16730747b4265e81d09cb5e072c7267

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/sslh/sslh.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/sslh/sslh.mk b/package/sslh/sslh.mk
index 99fb6bf922..897b3b6505 100644
--- a/package/sslh/sslh.mk
+++ b/package/sslh/sslh.mk
@@ -11,7 +11,7 @@ SSLH_LICENSE = GPL-2.0+
 SSLH_LICENSE_FILES = COPYING
 SSLH_DEPENDENCIES = pcre2
 
-SSLH_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS)
+SSLH_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
 
 ifeq ($(BR2_PACKAGE_LIBBSD),y)
 SSLH_DEPENDENCIES += libbsd



More information about the buildroot mailing list