From owner-freebsd-hackers Sat Aug 17 07:20:48 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA27481 for hackers-outgoing; Sat, 17 Aug 1996 07:20:48 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA27450 for ; Sat, 17 Aug 1996 07:20:41 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA23120; Sat, 17 Aug 1996 10:20:05 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Sat, 17 Aug 1996 10:20 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.7.5/8.7.3) with ESMTP id JAA17932; Sat, 17 Aug 1996 09:45:33 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.7.5/8.6.9) id JAA09556; Sat, 17 Aug 1996 09:52:24 -0400 (EDT) Date: Sat, 17 Aug 1996 09:52:24 -0400 (EDT) From: Thomas David Rivers Message-Id: <199608171352.JAA09556@lakes.water.net> To: bde@zeta.org.au, ponds!freebsd.org!freebsd-hackers, ponds!uriah.heep.sax.de!j Subject: Re: netdb.h and -traditional... Cc: ponds!ponds!rivers Content-Type: text 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 > So - should someone fix cdefs for GCC, or simply fix netdb.h? - Dave R. -