random fixes to make it build with socks

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5028 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-06-13 00:06:56 +00:00
parent a5f54865d4
commit e9fea047b0
15 changed files with 526 additions and 508 deletions

View File

@@ -259,8 +259,11 @@ netflush(void)
* old 4.2 client (and thus unable to survive TCP urgent data),
* write the entire buffer in non-OOB mode.
*/
#if 1 /* remove this to make it work between solaris 2.6 and linux */
if ((neturg == 0) || (not42 == 0)) {
#endif
n = write(net, nbackp, n); /* normal write */
#if 1 /* remove this to make it work between solaris 2.6 and linux */
} else {
n = neturg - nbackp;
/*
@@ -277,6 +280,7 @@ netflush(void)
n = send(net, nbackp, n, MSG_OOB); /* URGENT data */
}
}
#endif
}
if (n < 0) {
if (errno == EWOULDBLOCK || errno == EINTR)