aboutsummaryrefslogtreecommitdiff
path: root/nametoaddr.c
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-01-06 22:29:37 +0200
committerOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-01-06 22:29:45 +0200
commit4a7d7fca5b3b3d9fe5d3cef459ca6768c88619f2 (patch)
tree1acbd5babc2cb2b768b5a3ae8aee57b2a1ca7610 /nametoaddr.c
parent1292358d430b5b8c44552494a288ea59ab153d7c (diff)
Fix compilation on Cygwin
getnetbyname is not implemented in Cygwin. Reference: https://cygwin.com/cygwin-api/std-notimpl.html
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nametoaddr.c b/nametoaddr.c
index 13bf4c68..e005f054 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_)
{