From 0c43e2dfd71beb4b1866cbc5c6523dfbaf9cbf69 Mon Sep 17 00:00:00 2001
From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Date: Sat, 2 Sep 2017 06:50:49 -0500
Subject: [PATCH] haiku: res_init link name is __res_init.

---
 src/unix/mod.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index a235d6a4..2267c307 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -697,7 +697,8 @@ extern {
     #[cfg_attr(any(
                    all(target_os = "linux", not(target_env = "musl")),
                    target_os = "freebsd",
-                   target_os = "dragonfly"),
+                   target_os = "dragonfly",
+                   target_os = "haiku"),
                link_name = "__res_init")]
     #[cfg_attr(any(target_os = "macos", target_os = "ios"),
                link_name = "res_9_init")]
-- 
2.16.2

