$OpenBSD: patch-net_base_host_resolver_proc_cc,v 1.4 2011/10/27 07:59:09 robert Exp $
--- net/base/host_resolver_proc.cc.orig	Fri Oct 21 10:29:46 2011
+++ net/base/host_resolver_proc.cc	Wed Oct 26 13:47:44 2011
@@ -12,8 +12,8 @@
 #include "net/base/net_errors.h"
 #include "net/base/sys_addrinfo.h"
 
-#if defined(OS_POSIX) && !defined(OS_MACOSX)
-#include <resolv.h>
+#if defined(OS_OPENBSD)
+#define AI_ADDRCONFIG 0
 #endif
 
 namespace net {
@@ -143,7 +143,7 @@ int SystemHostResolverProc(const std::string& host,
       hints.ai_family = AF_UNSPEC;
   }
 
-#if defined(OS_WIN) || defined(OS_OPENBSD)
+#if defined(OS_WIN)
   // DO NOT USE AI_ADDRCONFIG ON WINDOWS.
   //
   // The following comment in <winsock2.h> is the best documentation I found
@@ -167,6 +167,7 @@ int SystemHostResolverProc(const std::string& host,
   //
   // OpenBSD does not support it, either.
   hints.ai_flags = 0;
+#define AI_ADDRCONFIG 0
 #else
   hints.ai_flags = AI_ADDRCONFIG;
 #endif
