]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_pmd_pcap/rte_eth_pcap.h
pcap: fix build when pcap_sendpacket is unavailable
[dpdk.git] / lib / librte_pmd_pcap / rte_eth_pcap.h
index 1cce7e0751b937bf490b6229479771a76ba22240..c45f4a1736c6bef0217137f998b63fe31ecdc3f7 100644 (file)
@@ -39,6 +39,12 @@ extern "C" {
 #endif
 #include <pcap.h>
 
+#ifdef pcap_sendpacket
+#define PCAP_CAN_SEND
+#else
+#undef PCAP_CAN_SEND
+#endif
+
 #define RTE_ETH_PCAP_PARAM_NAME "eth_pcap"
 
 int rte_eth_from_pcaps(pcap_t * const rx_queues[],