ld/plugins: avoid shadowing a C library symbol
[deliverable/binutils-gdb.git] / gdb / ser-tcp.c
index f484e59f196600a5bbff8c62ef781d17a13a4986..5aa7105dc2cb4e8549f286994d918e3e7e4cd06a 100644 (file)
@@ -39,8 +39,7 @@
 #include "common/gdb_sys_time.h"
 
 #ifdef USE_WIN32API
-#include <winsock2.h>
-#include <wspiapi.h>
+#include <ws2tcpip.h>
 #ifndef ETIMEDOUT
 #define ETIMEDOUT WSAETIMEDOUT
 #endif
@@ -320,7 +319,7 @@ net_open (struct serial *scb, const char *name)
     {
       got_connrefused = false;
 
-      for (struct addrinfo *iter = ainfo; iter != NULL; iter = iter->ai_next)
+      for (addrinfo *iter = ainfo; iter != NULL; iter = iter->ai_next)
        {
          /* Iterate over the list of possible addresses to connect
             to.  For each, we'll try to connect and see if it
This page took 0.023417 seconds and 4 git commands to generate.