Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: net/base/host_resolver_proc.cc

Issue 8336024: OpenBSD patches for net, split from CR #8275005 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove arpa/nameser.h Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/host_resolver_proc.cc
diff --git a/net/base/host_resolver_proc.cc b/net/base/host_resolver_proc.cc
index 331675a366be09d62c73fefd89595408793d10bc..e88fa2cef3a0b716d16cc11fa510a2c581e9f654 100644
--- a/net/base/host_resolver_proc.cc
+++ b/net/base/host_resolver_proc.cc
@@ -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

Powered by Google App Engine
This is Rietveld 408576698