From: serassio <> Date: Fri, 31 Dec 2004 17:29:28 +0000 (+0000) Subject: TIOCNOTTY is not available on all platforms (OpenBSD 3.6 is one) X-Git-Tag: SQUID_3_0_PRE4~922 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c99c5397a1671582804dede2907b533a6b195a21;p=thirdparty%2Fsquid.git TIOCNOTTY is not available on all platforms (OpenBSD 3.6 is one) One more #ifdef is needed. --- diff --git a/src/main.cc b/src/main.cc index 59bb626f17..acc2fbe540 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.400 2004/12/28 12:52:05 hno Exp $ + * $Id: main.cc,v 1.401 2004/12/31 10:29:28 serassio Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -1310,7 +1310,11 @@ watch_child(char *argv[]) #endif pid_t pid; +#ifdef TIOCNOTTY + int i; +#endif + int nullfd; if (*(argv[0]) == '(')