projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a new 'info proc files' subcommand of 'info proc'.
[deliverable/binutils-gdb.git]
/
gdb
/
ser-tcp.c
diff --git
a/gdb/ser-tcp.c
b/gdb/ser-tcp.c
index 8f165bcf0b1c3a119070f381e2b8ba13c82ddbe1..bdfd55663b6569204499937aa0e041f3e3fb450f 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);
@@
-367,7
+371,7
@@
net_open (struct serial *scb, const char *name)
ioctl (scb->fd, FIONBIO, &ioarg);
ioctl (scb->fd, FIONBIO, &ioarg);
- if (success_ainfo->ai_
socktype
== IPPROTO_TCP)
+ if (success_ainfo->ai_
protocol
== IPPROTO_TCP)
{
/* Disable Nagle algorithm. Needed in some cases. */
int tmp = 1;
{
/* Disable Nagle algorithm. Needed in some cases. */
int tmp = 1;
This page took
0.024578 seconds
and
4
git commands to generate.