projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Declare 'ioarg' (from ser-tcp.c:try_connect) as 'u_long' when on Windows (and unbreak...
[external/binutils.git]
/
gdb
/
ser-tcp.c
diff --git
a/gdb/ser-tcp.c
b/gdb/ser-tcp.c
index
8f165bc
..
618d2d9
100644
(file)
--- 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. */
return -1;
/* Set socket nonblocking. */
+#ifdef USE_WIN32API
+ u_long ioarg = 1;
+#else
int ioarg = 1;
int ioarg = 1;
+#endif
ioctl (sock, FIONBIO, &ioarg);
ioctl (sock, FIONBIO, &ioarg);