From: Bruce Richardson Date: Thu, 18 Sep 2014 10:55:52 +0000 (+0100) Subject: ixgbe: fix build with gcc 4.4 X-Git-Tag: spdx-start~10421 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d6c841e80bcc8d6a35a061fb1e5faad6a157dd35;p=dpdk.git ixgbe: fix build with gcc 4.4 The refcnt field is contained within an anonymous union within the mbuf data structure, and gcc 4.4 gives an error about an unknown field unless the initialiser for the field is contained within extra braces. Signed-off-by: Bruce Richardson Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c index a6f7fdfa63..203ddf7ff9 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c @@ -723,7 +723,7 @@ ixgbe_rxq_vec_setup(struct igb_rx_queue *rxq) .nb_segs = 1, .data_off = RTE_PKTMBUF_HEADROOM, #ifdef RTE_MBUF_REFCNT - .refcnt = 1, + { .refcnt = 1, } #endif };