All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/sslh: fix build with gcc 4.8
@ 2022-01-24 21:36 Fabrice Fontaine
  2022-01-26 22:05 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-01-24 21:36 UTC (permalink / raw)
  To: buildroot; +Cc: David Bachelart, 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++) {
     ^

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.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
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/sslh: fix build with gcc 4.8
  2022-01-24 21:36 [Buildroot] [PATCH 1/1] package/sslh: fix build with gcc 4.8 Fabrice Fontaine
@ 2022-01-26 22:05 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-01-26 22:05 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: David Bachelart, buildroot

On Mon, 24 Jan 2022 22:36:31 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> 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@gmail.com>
> ---
>  package/sslh/sslh.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-26 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-24 21:36 [Buildroot] [PATCH 1/1] package/sslh: fix build with gcc 4.8 Fabrice Fontaine
2022-01-26 22:05 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.