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
This commit is contained in:
Ingo Weinhold
2005-03-26 13:02:55 +00:00
parent 055b5b93a8
commit 9dcad89a9b
+2
View File
@@ -178,6 +178,7 @@ net_open (struct serial *scb, const char *name)
tmp = 0; tmp = 0;
ioctl (scb->fd, FIONBIO, &tmp); ioctl (scb->fd, FIONBIO, &tmp);
#ifndef __BEOS__
if (use_udp == 0) if (use_udp == 0)
{ {
/* Disable Nagle algorithm. Needed in some cases. */ /* 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, setsockopt (scb->fd, IPPROTO_TCP, TCP_NODELAY,
(char *)&tmp, sizeof (tmp)); (char *)&tmp, sizeof (tmp));
} }
#endif
/* If we don't do this, then GDB simply exits /* If we don't do this, then GDB simply exits
when the remote side dies. */ when the remote side dies. */