diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-12 00:47:37 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-12 00:47:37 +0000 |
commit | a540c2d2927d84f850bbe85c151e79965ae6e29b (patch) | |
tree | b78177428ba1f731794f7c85ee41275089c6bdbe /net/tools/hresolv | |
parent | 707904a603fe25d4f9872a9c57244a5005cf7a16 (diff) | |
download | chromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.zip chromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.tar.gz chromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.tar.bz2 |
Minor cleanup: add a sys_addrinfo.h header that hides the platform-specific includes needed for struct addrinfo / struct sockaddr, since we were duplicating that #if #else logic in a growing number of places.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/491038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/hresolv')
-rw-r--r-- | net/tools/hresolv/hresolv.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/tools/hresolv/hresolv.cc b/net/tools/hresolv/hresolv.cc index f662817..ed63330 100644 --- a/net/tools/hresolv/hresolv.cc +++ b/net/tools/hresolv/hresolv.cc @@ -19,13 +19,6 @@ // Interleave synchronous and asynchronous lookups. // Specify the address family. -#include "build/build_config.h" - -#if defined(OS_WIN) -#include <ws2tcpip.h> -#else -#include <netdb.h> -#endif #include <stdio.h> #include <string> @@ -43,6 +36,7 @@ #include "net/base/host_resolver_impl.h" #include "net/base/net_errors.h" #include "net/base/net_util.h" +#include "net/base/sys_addrinfo.h" struct FlagName { int flag; |