[Buildroot] [PATCH 1/1] package/darkhttpd: fix build with gcc 4.8

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Jul 20 21:43:11 UTC 2021


On Tue, 20 Jul 2021 22:54:08 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following build failure which is raised since bump to version
> 0.13 in commit 88705a8c248e566f2c9ca71a8ee5353b33e368c2:
> 
> darkhttpd.c:966:5: error: 'for' loop initial declarations are only allowed in C99 mode
>      for (int i = 0, j = 0; i < input_length;) {
>      ^
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/ffc/ffcb627c44d2b7202d641129b67af2dc7865c618/build-end.log
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  ...vars-outside-of-for-loop-for-std-c90.patch | 39 +++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 package/darkhttpd/0001-Declare-vars-outside-of-for-loop-for-std-c90.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list