From 4a7d7fca5b3b3d9fe5d3cef459ca6768c88619f2 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 6 Jan 2020 22:29:37 +0200 Subject: [PATCH] Fix compilation on Cygwin getnetbyname is not implemented in Cygwin. Reference: https://cygwin.com/cygwin-api/std-notimpl.html --- nametoaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nametoaddr.c b/nametoaddr.c index 13bf4c6837..e005f054d8 100644 --- a/nametoaddr.c +++ b/nametoaddr.c @@ -217,7 +217,7 @@ pcap_nametoaddrinfo(const char *name) * XXX - not guaranteed to be thread-safe! See below for platforms * on which it is thread-safe and on which it isn't. */ -#ifdef _WIN32 +#if defined(_WIN32) || defined(__CYGWIN__) bpf_u_int32 pcap_nametonetaddr(const char *name _U_) {