Skip to contentSkip to conversation

package/sslh: fix build with gcc 4.8

PATCH Applied Fabrice Fontaine 2 participants 2 messages Jan 24, 2022 – Jan 26, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/sslh: fix build with gcc 4.8

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

---
 package/sslh/sslh.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/sslh/sslh.mk +1 -1
index 99fb6bf922..897b3b6505 100644
@@ -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
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · On Mon, 24 Jan 2022 22:36:31 +0100 Fabrice Fontaine…

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++) {
     ^
Quoted 7 lines

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

---
 package/sslh/sslh.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot