Declare 'ioarg' (from ser-tcp.c:try_connect) as 'u_long' when on Windows (and unbreak...
[external/binutils.git] / gdb / ser-tcp.c
index 8f165bc..618d2d9 100644 (file)
@@ -171,7 +171,11 @@ try_connect (const struct addrinfo *ainfo, unsigned int *polls)
     return -1;
 
   /* Set socket nonblocking.  */
+#ifdef USE_WIN32API
+  u_long ioarg = 1;
+#else
   int ioarg = 1;
+#endif
 
   ioctl (sock, FIONBIO, &ioarg);