Fix Win32 adb build.

Change-Id: I0a07379c470b7fa7f9bdef68c17ccb7bd0bd2079
diff --git a/adb/adb_utils.cpp b/adb/adb_utils.cpp
index 3846c21..cd3c7bc 100644
--- a/adb/adb_utils.cpp
+++ b/adb/adb_utils.cpp
@@ -18,7 +18,6 @@
 
 #include "adb_utils.h"
 
-#include <netdb.h>
 #include <stdlib.h>
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -34,6 +33,12 @@
 #include "adb_trace.h"
 #include "sysdeps.h"
 
+#if defined(_WIN32)
+#include <ws2tcpip.h>
+#else
+#include <netdb.h>
+#endif
+
 bool getcwd(std::string* s) {
   char* cwd = getcwd(nullptr, 0);
   if (cwd != nullptr) *s = cwd;
@@ -168,7 +173,7 @@
         return fd;
     }
     if (getaddrinfo_error != 0) {
-        // TODO: not thread safe on Win32.
+        // TODO: gai_strerror is not thread safe on Win32.
         *error = gai_strerror(getaddrinfo_error);
     } else {
         *error = strerror(errno);