From owner-freebsd-current Thu Dec 31 11:40:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10184 for freebsd-current-outgoing; Thu, 31 Dec 1998 11:40:29 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zippy.dyn.ml.org (tibet-29.ppp.hooked.net [206.80.9.157]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10167 for ; Thu, 31 Dec 1998 11:40:16 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost) by zippy.dyn.ml.org (8.9.1/8.8.8) with ESMTP id LAA03203; Thu, 31 Dec 1998 11:42:33 -0800 (PST) (envelope-from garbanzo@hooked.net) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Thu, 31 Dec 1998 11:42:33 -0800 (PST) From: Alex Zepeda X-Sender: garbanzo@zippy.dyn.ml.org To: "Brian W. Buchanan" cc: current Subject: Re: egcs chokes on netinet/in.h.. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 31 Dec 1998, Brian W. Buchanan wrote: > This seems like a rather stupid restriction of ANSI C++, and in any case, > the compiler shouldn't treat it as a fatal error unless you specified > -ansi -pedantic. To fix this without hacking the compiler to fix the > bug, perhaps try wrapping the include directive: Perhaps, but it's still technically broken code, and the "correct" fix would only affect a few programs? But the thing is egcs is supposed to be an ANSI C++ compiler, so -ansi shouldn't be required (and it isn't). You've obviously not used a recent version of egcs have you. Watching const -> non const being treated as a fatal error as long as there's no cast... boy that was fun! > extern "C" { > #include > } I'd rather not "fix" our code, *sigh*. - alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message