From 9358710ea223a484a8fd6dd76b41134cd8af51b8 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 30 Oct 2013 17:05:49 -0600 Subject: [PATCH] Would help in building ares if I added the patch file too :P --- net-dns/c_ares/patches/c_ares-1.10.0.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 net-dns/c_ares/patches/c_ares-1.10.0.patch diff --git a/net-dns/c_ares/patches/c_ares-1.10.0.patch b/net-dns/c_ares/patches/c_ares-1.10.0.patch new file mode 100644 index 000000000..109fb9571 --- /dev/null +++ b/net-dns/c_ares/patches/c_ares-1.10.0.patch @@ -0,0 +1,27 @@ +diff -up c-ares-1.10.0/ares.h.orig c-ares-1.10.0/ares.h +--- c-ares-1.10.0/ares.h.orig 2013-10-30 14:59:47.195297280 -0600 ++++ c-ares-1.10.0/ares.h 2013-10-30 15:00:19.284950528 -0600 +@@ -38,7 +38,7 @@ + require it! */ + #if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \ + defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \ +- defined(ANDROID) || defined(__ANDROID__) ++ defined(ANDROID) || defined(__ANDROID__) || defined(__HAIKU__) + #include + #endif + #if (defined(NETWARE) && !defined(__NOVELL_LIBC__)) +diff -up c-ares-1.10.0/ares_private.h.orig c-ares-1.10.0/ares_private.h +--- c-ares-1.10.0/ares_private.h.orig 2013-02-13 06:58:04.034078720 -0700 ++++ c-ares-1.10.0/ares_private.h 2013-10-30 14:59:30.440664064 -0600 +@@ -65,6 +65,11 @@ + + #define PATH_HOSTS "InetDBase:Hosts" + ++#elif defined(__HAIKU__) ++ ++#define PATH_RESOLV_CONF "/boot/system/settings/network/resolv.conf" ++#define PATH_HOSTS "/boot/system/settings/network/hosts" ++ + #else + + #define PATH_RESOLV_CONF "/etc/resolv.conf"