From 85a9a3f0e644556b0cd8f2126c6efa5d32695704 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 18 Oct 2022 19:05:31 +0200 Subject: [PATCH] package/gesftpserver: fix build with gcc 4.8 Fix the following build failure with gcc 4.8 raised since bump to version 2 in commit 026265bf7e09e0348aefa79e7a1f32add925f23b and https://github.com/ewxrjk/sftpserver/commit/dbbf0d45425a72a790d25b889ca2cfa909aaaadf: In file included from alloc.c:25:0: utils.h:204:48: error: expected ';', ',' or ')' before 'dest' static inline void *sftp_memcpy(void *restrict dest, const void *restrict src, ^ Fixes: - http://autobuild.buildroot.org/results/2795213c07c4a961cee0ae7a4e7cccb8bcd6f68e Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- package/gesftpserver/gesftpserver.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/gesftpserver/gesftpserver.mk b/package/gesftpserver/gesftpserver.mk index b47ec1c5d3..5a3ab0536c 100644 --- a/package/gesftpserver/gesftpserver.mk +++ b/package/gesftpserver/gesftpserver.mk @@ -16,7 +16,9 @@ GESFTPSERVER_CPE_ID_VENDOR = green_end GESFTPSERVER_CPE_ID_PRODUCT = sftpserver # forgets to link against pthread when cross compiling -GESFTPSERVER_CONF_ENV = LIBS=-lpthread +GESFTPSERVER_CONF_ENV = \ + CFLAGS="$(TARGET_CFLAGS) -std=c99" \ + LIBS=-lpthread # overwrite openssh version if enabled GESFTPSERVER_DEPENDENCIES += \