package/darkhttpd: fix build with gcc 4.8
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 20 Jul 2021 20:54:08 +0000 (22:54 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 20 Jul 2021 21:41:54 +0000 (23:41 +0200)
commit9ca64820db6766ad51bc835c86948cbe2c87e209
tree45d0e758107640ab0ab3c3e0afe9d2405093b3c7
parent482270e2948043f32eba11399bf405aae1adfb13
package/darkhttpd: fix build with gcc 4.8

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@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/darkhttpd/0001-Declare-vars-outside-of-for-loop-for-std-c90.patch [new file with mode: 0644]