openbsd-ports/www/chromium/patches/patch-net_base_dnsrr_resolver_cc
2011-03-15 11:38:05 +00:00

30 lines
700 B
Plaintext

$OpenBSD: patch-net_base_dnsrr_resolver_cc,v 1.2 2011/03/15 11:38:05 robert Exp $
--- net/base/dnsrr_resolver.cc.orig Fri Mar 11 10:01:15 2011
+++ net/base/dnsrr_resolver.cc Mon Mar 14 10:55:37 2011
@@ -4,6 +4,12 @@
#include "net/base/dnsrr_resolver.h"
+#if defined(OS_OPENBSD)
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#endif
+
#if defined(OS_POSIX)
#include <resolv.h>
#endif
@@ -185,10 +191,12 @@ class RRResolverWorker {
}
bool r = true;
+#if !defined(OS_OPENBSD)
if ((_res.options & RES_INIT) == 0) {
if (res_ninit(&_res) != 0)
r = false;
}
+#endif
if (r) {
unsigned long saved_options = _res.options;