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

André Hentschel nerv at dawncrow.de
Sat May 4 05:18:30 CDT 2019


Am 03.05.19 um 18:49 schrieb Vijay Kiran Kamuju:
> 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)
> 

Signed-off-by: André Hentschel <nerv at dawncrow.de>



More information about the wine-devel mailing list