[dpdk-dev] [RFC 1/3] net/ixgbe: avoid multpile definitions of 'bool'
Dharmik Thakkar
dharmik.thakkar at arm.com
Sun Sep 1 08:58:08 CEST 2019
Compilation issue arises due to multiple definitions of 'bool'
in 'ixgbe_ethdev.h'.
(Please note that this issue showed up when 'rte_rcu_qsbr.h' got included
within 'rte_hash.h', because 'rte_rcu_qsbr.h' includes 'stdbool.h'. This
is a temporary fix. Recommend suggesting better solution.)
Signed-off-by: Dharmik Thakkar <dharmik.thakkar at arm.com>
---
drivers/net/ixgbe/ixgbe_ethdev.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.h b/drivers/net/ixgbe/ixgbe_ethdev.h
index 6e9ed2e10f3c..dd4d6c022545 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.h
+++ b/drivers/net/ixgbe/ixgbe_ethdev.h
@@ -18,6 +18,7 @@
#include <rte_flow.h>
#include <rte_time.h>
#include <rte_hash.h>
+#undef bool
#include <rte_pci.h>
#include <rte_bus_pci.h>
#include <rte_tm_driver.h>
--
2.17.1
More information about the dev
mailing list