NetBSD kernels don't support TCP_NOPUSH, so on alpha don't try setting
this socket option. This is temporary code while the alpha still uses NetBSD socket code in the kernel.
This commit is contained in:
parent
cfc1614a48
commit
63e7e54aa4
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)fingerd.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: fingerd.c,v 1.10 1997/11/20 07:26:04 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -100,11 +100,13 @@ main(argc, argv)
|
||||
* Enable server-side Transaction TCP.
|
||||
*/
|
||||
{
|
||||
#if !defined(__alpha__) /* XXX FIXME */
|
||||
int one = 1;
|
||||
if (setsockopt(STDOUT_FILENO, IPPROTO_TCP, TCP_NOPUSH, &one,
|
||||
sizeof one) < 0) {
|
||||
logerr("setsockopt(TCP_NOPUSH) failed: %m");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!fgets(line, sizeof(line), stdin))
|
||||
|
Loading…
Reference in New Issue
Block a user