From: Gaetan Rivet Date: Thu, 20 Jul 2017 12:27:53 +0000 (+0200) Subject: net/failsafe: fix build on FreeBSD 10 with GCC 4.8 X-Git-Tag: spdx-start~2383 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ea7726a6ee4b2b63313c4a198522a8dcea70c13d;p=dpdk.git net/failsafe: fix build on FreeBSD 10 with GCC 4.8 ctype.h is not compilable in BSD 10 on GCC 4.8 in C11 mode. CC failsafe.o In file included from /usr/include/_ctype.h:94:0, from /usr/include/ctype.h:46, from /root/dpdk.org/build/include/rte_common.h:50, from /root/dpdk.org/build/include/rte_memory.h:57, from /root/dpdk.org/build/include/rte_malloc.h:45, from /root/dpdk.org/drivers/net/failsafe/failsafe.c:35: /usr/include/runetype.h:92:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const' extern _Thread_local const _RuneLocale *_ThreadRuneLocale; ^ /usr/include/runetype.h: In function '__getCurrentRuneLocale': /usr/include/runetype.h:96:6: error: '_ThreadRuneLocale' undeclareds (first use in this function) if (_ThreadRuneLocale) ^ The fix is to put GCC in gnu99 mode instead. Fixes: a46f8d584eb8 ("net/failsafe: add fail-safe PMD") Signed-off-by: Gaetan Rivet --- diff --git a/drivers/net/failsafe/Makefile b/drivers/net/failsafe/Makefile index 32aaaa2958..d516d36215 100644 --- a/drivers/net/failsafe/Makefile +++ b/drivers/net/failsafe/Makefile @@ -50,7 +50,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe_flow.c # No exported include files # Basic CFLAGS: -CFLAGS += -std=c11 -Wextra +CFLAGS += -std=gnu99 -Wextra CFLAGS += -O3 CFLAGS += -I. CFLAGS += -D_DEFAULT_SOURCE