mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
package/mongoose: fix build with gcc 4.8
Fix the following build failure with gcc 4.8 raised since bump to version 7.8 in commitf9e51e1150: /home/buildroot/autobuild/run/instance-2/output-1/build/mongoose-7.8/mongoose.c: In function 'mg_iotest': /home/buildroot/autobuild/run/instance-2/output-1/build/mongoose-7.8/mongoose.c:4484:3: error: 'for' loop initial declarations are only allowed in C99 mode for (struct mg_connection *c = mgr->conns; c != NULL; c = c->next) { ^ Fixes: - http://autobuild.buildroot.org/results/c538c6d8e87e4e24097c9878ee15083802276505 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit6139aeacd8) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
b15b33fc57
commit
5efc9e326d
@@ -13,7 +13,7 @@ MONGOOSE_INSTALL_STAGING = YES
|
||||
# static library
|
||||
MONGOOSE_INSTALL_TARGET = NO
|
||||
|
||||
MONGOOSE_CFLAGS = $(TARGET_CFLAGS)
|
||||
MONGOOSE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
MONGOOSE_DEPENDENCIES += openssl
|
||||
|
||||
Reference in New Issue
Block a user