$OpenBSD: patch-net_base_dnsrr_resolver_cc,v 1.5 2011/10/27 07:59:09 robert Exp $ --- net/base/dnsrr_resolver.cc.orig Wed Oct 26 13:46:29 2011 +++ net/base/dnsrr_resolver.cc Wed Oct 26 13:46:58 2011 @@ -5,6 +5,7 @@ #include "net/base/dnsrr_resolver.h" #if defined(OS_POSIX) +#include #include #endif @@ -186,7 +187,11 @@ class RRResolverWorker { bool r = true; #if defined(OS_MACOSX) || defined(OS_OPENBSD) if ((_res.options & RES_INIT) == 0) { +#if defined(OS_OPENBSD) + if (res_init() != 0) +#else if (res_ninit(&_res) != 0) +#endif r = false; } #else