From 0bcf9eacdf30c8bd496d39f45afa6e2cb74a2363 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 27 Feb 2001 14:03:30 +1100 Subject: [PATCH] - (djm) Avoid warnings for missing broken IP_TOS. Patch from Mark Miller --- ChangeLog | 6 ++++-- packet.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c1111eb48..9dfcadf6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,7 +17,9 @@ - (djm) Fix PAM fix - (djm) Remove 'noreplace' flag from sshd_config in RPM spec files. This change is being made as 2.5.x configfiles are not back-compatible with - 2.3.x. + 2.3.x. + - (djm) Avoid warnings for missing broken IP_TOS. Patch from Mark Miller + 20010226 - (bal) Fixed bsd-snprinf.c so it now honors 'BROKEN_SNPRINTF' again. @@ -4152,4 +4154,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.834 2001/02/26 23:53:00 djm Exp $ +$Id: ChangeLog,v 1.835 2001/02/27 03:03:37 djm Exp $ diff --git a/packet.c b/packet.c index fb4314553..5213e43e8 100644 --- a/packet.c +++ b/packet.c @@ -1232,8 +1232,10 @@ void packet_set_interactive(int interactive) { static int called = 0; +#if defined(IP_TOS) && !defined(IP_TOS_IS_BROKEN) int lowdelay = IPTOS_LOWDELAY; int throughput = IPTOS_THROUGHPUT; +#endif int on = 1; if (called)