1d1f0ea496
switch from using the hacked macosx transport dib to the linux one which uses sysv shms. make sure you also have a current kernel before using this version
24 lines
626 B
Plaintext
24 lines
626 B
Plaintext
$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 <netinet/in.h>
|
|
#include <resolv.h>
|
|
#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
|