Index: net/base/host_resolver_proc.cc |
diff --git a/net/base/host_resolver_proc.cc b/net/base/host_resolver_proc.cc |
index 30f453fee7a8d8b2a1a273741fb4cfce60516126..10523a34942c830327053f4c26e4158293b2406d 100644 |
--- a/net/base/host_resolver_proc.cc |
+++ b/net/base/host_resolver_proc.cc |
@@ -6,16 +6,16 @@ |
#include "build/build_config.h" |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) |
-#include <resolv.h> |
-#endif |
- |
#include "base/logging.h" |
#include "net/base/address_list.h" |
#include "net/base/dns_reload_timer.h" |
#include "net/base/net_errors.h" |
#include "net/base/sys_addrinfo.h" |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#include <resolv.h> |
+#endif |
+ |
namespace net { |
namespace { |
@@ -248,7 +248,7 @@ int SystemHostResolverProc(const std::string& host, |
#if defined(OS_WIN) |
if (err != WSAHOST_NOT_FOUND && err != WSANO_DATA) |
return ERR_NAME_RESOLUTION_FAILED; |
-#elif defined(OS_POSIX) |
+#elif defined(OS_POSIX) && !defined(OS_FREEBSD) |
if (err != EAI_NONAME && err != EAI_NODATA) |
return ERR_NAME_RESOLUTION_FAILED; |
#endif |