From 9dcad89a9b740d554087dd82ed0eaa94912be85e Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 26 Mar 2005 13:02:55 +0000 Subject: [PATCH] TCP_NODELAY is not defined in Haiku networking headers yet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12030 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/gdb/gdb/ser-tcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/gdb/gdb/ser-tcp.c b/src/bin/gdb/gdb/ser-tcp.c index de8c428374..a272f16f1c 100644 --- a/src/bin/gdb/gdb/ser-tcp.c +++ b/src/bin/gdb/gdb/ser-tcp.c @@ -178,6 +178,7 @@ net_open (struct serial *scb, const char *name) tmp = 0; ioctl (scb->fd, FIONBIO, &tmp); +#ifndef __BEOS__ if (use_udp == 0) { /* Disable Nagle algorithm. Needed in some cases. */ @@ -185,6 +186,7 @@ net_open (struct serial *scb, const char *name) setsockopt (scb->fd, IPPROTO_TCP, TCP_NODELAY, (char *)&tmp, sizeof (tmp)); } +#endif /* If we don't do this, then GDB simply exits when the remote side dies. */