Condition SO_PRIVSTATE twiddling on the definedness of SO_PRIVSTATE.

(This was done as a #ifdef to keep source compatibility between 2.2 and 3.0.)
This commit is contained in:
Garrett Wollman 1997-04-28 13:55:07 +00:00
parent 3de5b08eda
commit aeb83a466a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25253

View file

@ -40,7 +40,7 @@ static char copyright[] __attribute__ ((unused)) =
#ifndef lint
/* from: @(#)inetd.c 8.4 (Berkeley) 4/13/94"; */
static char inetd_c_rcsid[] __attribute__ ((unused)) =
"$Id: inetd.c,v 1.21 1997/02/22 16:05:52 peter Exp $";
"$Id: inetd.c,v 1.22 1997/03/31 05:10:10 imp Exp $";
#endif /* not lint */
/*
@ -825,8 +825,10 @@ setsockopt(fd, SOL_SOCKET, opt, (char *)&on, sizeof (on))
syslog(LOG_ERR, "setsockopt (SO_DEBUG): %m");
if (turnon(sep->se_fd, SO_REUSEADDR) < 0)
syslog(LOG_ERR, "setsockopt (SO_REUSEADDR): %m");
#ifdef SO_PRIVSTATE
if (turnon(sep->se_fd, SO_PRIVSTATE) < 0)
syslog(LOG_ERR, "setsockopt (SO_PRIVSTATE): %m");
#endif
#undef turnon
if (bind(sep->se_fd, (struct sockaddr *)&sep->se_ctrladdr,
sizeof (sep->se_ctrladdr)) < 0) {