From aeb83a466a4e616f8b923c8cfdcbefb2a2714f16 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Mon, 28 Apr 1997 13:55:07 +0000 Subject: [PATCH] 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.) --- usr.sbin/inetd/inetd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index a1ef0586d82..3316bfb609a 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -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) {