Date: Thu, 31 Dec 1998 11:42:33 -0800 (PST) From: Alex Zepeda <garbanzo@hooked.net> To: "Brian W. Buchanan" <brian@CSUA.Berkeley.EDU> Cc: current <current@FreeBSD.ORG> Subject: Re: egcs chokes on netinet/in.h.. Message-ID: <Pine.BSF.4.05.9812311139420.321-100000@zippy.dyn.ml.org> In-Reply-To: <Pine.BSF.4.05.9812310837360.325-100000@smarter.than.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <netinet/in.h>
> }
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9812311139420.321-100000>
