diff options
Diffstat (limited to 'net/libares/patches/patch-ab')
-rw-r--r-- | net/libares/patches/patch-ab | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/libares/patches/patch-ab b/net/libares/patches/patch-ab new file mode 100644 index 00000000000..d68d86aa915 --- /dev/null +++ b/net/libares/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1 2005/03/12 05:42:48 tv Exp $ + +--- ares_init.c.orig 1999-10-23 15:28:13.000000000 -0400 ++++ ares_init.c +@@ -32,6 +32,10 @@ static const char rcsid[] = "$Id: ares_i + #include "ares.h" + #include "ares_private.h" + ++#ifndef INADDR_LOOPBACK ++#define INADDR_LOOPBACK inet_addr("127.0.0.1") ++#endif ++ + static int init_by_options(ares_channel channel, struct ares_options *options, + int optmask); + static int init_by_environment(ares_channel channel); |