diff options
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r-- | gdb/ser-tcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 8f165bc..618d2d9 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -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); |