[PATCH] wpcap: fix compile warnings for redefinition of PCAP_OPENFLAG_PROMISCUOUS

Vijay Kiran Kamuju infyquest at gmail.com
Fri May 3 11:49:48 CDT 2019


Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
---
 dlls/wpcap/wpcap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c
index f1632351388..6450a0ebb2f 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -254,7 +254,9 @@ int CDECL wine_pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header, const un
     return pcap_next_ex(p, pkt_header, pkt_data);
 }
 
+#ifndef PCAP_OPENFLAG_PROMISCUOUS
 #define PCAP_OPENFLAG_PROMISCUOUS 1
+#endif
 
 pcap_t* CDECL wine_pcap_open(const char *source, int snaplen, int flags, int read_timeout,
                              void *auth, char *errbuf)
-- 
2.17.0




More information about the wine-devel mailing list