Date: Sat, 17 Aug 1996 08:25:04 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-hackers@freebsd.org, j@uriah.heep.sax.de Cc: ponds!rivers@dg-rtp.dg.com Subject: Re: netdb.h and -traditional... Message-ID: <199608162225.IAA05464@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> While building some older (non-ANSI) sources with the -traditional >> flag, I ran into the following (on 2.1.5) on line 139 of netdb.h: >> >> const char *hstrerror __P((int)); >> >> which, of course, breaks because 'const' is ANSI. >It is, of course :), supposed to work, since <sys/cdefs.h> #define's >const to nothing when working on a non-ANSI compiler. This is broken for gcc -traditional. It works for non-gcc non-ANSI compilers. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608162225.IAA05464>