summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@6wind.com>2013-11-22 11:24:56 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-11-22 13:37:11 +0100
commit2eade84c5f2da0ccf4c77262410fd82f4e625c77 (patch)
treeda0827c91a027b52442b5f2e09d49475af9253b3
parentfedd1c636bd3c94213cedc25210567df356e64be (diff)
downloaddpdk-stable-2eade84c5f2da0ccf4c77262410fd82f4e625c77.zip
dpdk-stable-2eade84c5f2da0ccf4c77262410fd82f4e625c77.tar.gz
dpdk-stable-2eade84c5f2da0ccf4c77262410fd82f4e625c77.tar.xz
pcap: fix build with old libpcap
For backwards compatibility, pcap.h includes pcap/pcap.h. Hence, to be compatible with older pcap libraries, we must include pcap.h. Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
-rw-r--r--lib/librte_pmd_pcap/rte_eth_pcap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_pmd_pcap/rte_eth_pcap.h b/lib/librte_pmd_pcap/rte_eth_pcap.h
index 7ed68b1..a1bd513 100644
--- a/lib/librte_pmd_pcap/rte_eth_pcap.h
+++ b/lib/librte_pmd_pcap/rte_eth_pcap.h
@@ -37,7 +37,7 @@
#ifdef __cplusplus
extern "C" {
#endif
-#include <pcap/pcap.h>
+#include <pcap.h>
#define RTE_ETH_PCAP_PARAM_NAME "eth_pcap"