From owner-freebsd-hackers Fri Aug 16 15:26:27 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA24446 for hackers-outgoing; Fri, 16 Aug 1996 15:26:27 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA24437 for ; Fri, 16 Aug 1996 15:26:23 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id IAA05464; Sat, 17 Aug 1996 08:25:04 +1000 Date: Sat, 17 Aug 1996 08:25:04 +1000 From: Bruce Evans Message-Id: <199608162225.IAA05464@godzilla.zeta.org.au> To: freebsd-hackers@freebsd.org, j@uriah.heep.sax.de Subject: Re: netdb.h and -traditional... Cc: ponds!rivers@dg-rtp.dg.com Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> 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 #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