[dpdk-dev] [PATCH] ethdev: fix compilation with gcc 4.8
Raslan Darawsheh
rasland at mellanox.com
Wed Oct 23 14:14:26 CEST 2019
gcc 4.8 is considering bit filed as extention rather than
c11 std with pedantic, which cause compilation failure.
This adds extention keyword exceplicitly to the struct
to avoid compilation issue on gcc 4.8
Fixes: a7658a86 ("ethdev: add HIGIG2 key field to flow API")
Signed-off-by: Raslan Darawsheh <rasland at mellanox.com>
---
lib/librte_net/rte_higig.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_net/rte_higig.h b/lib/librte_net/rte_higig.h
index 44df666..b9cdfef 100644
--- a/lib/librte_net/rte_higig.h
+++ b/lib/librte_net/rte_higig.h
@@ -103,7 +103,7 @@ struct rte_higig2_ppt_type0 {
*
* higig2 ppt type1 header.
*/
-RTE_STD_C11
+__extension__
struct rte_higig2_ppt_type1 {
uint16_t classification;
uint16_t resv;
--
2.7.4
More information about the dev
mailing list