Remove #ifdefs

Thanks to cgd@NetBSD.ORG for pointing the following out to me:

listen (fd, SOMAXCONN); would break.

As programs wouldn't see the changes that might be specified in
the kernel config file.

As penance I am going to see if it would be possible to move this
into param.h and provide away of finding out what the kernel
value is. On busy network servers this value is useful to have as a tunable
kernel parameter.
This commit is contained in:
neil 1996-05-03 09:23:22 +00:00
parent c917cba930
commit 92f6aca2ec
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: socket.h,v 1.15 1996/05/02 00:25:13 neil Exp $ */
/* $NetBSD: socket.h,v 1.16 1996/05/03 09:23:22 neil Exp $ */
/*
* Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
@ -239,9 +239,9 @@ struct sockproto {
/*
* Maximum queue length specifiable by listen(2).
*/
#ifndef SOMAXCONN
#define SOMAXCONN 128
#endif
/*
* Message header for recvmsg and sendmsg calls.
* Used value-result for recvmsg, value only for sendmsg.