From owner-freebsd-hackers Fri Aug 16 13:50:24 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA16637 for hackers-outgoing; Fri, 16 Aug 1996 13:50:24 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA16630 for ; Fri, 16 Aug 1996 13:50:19 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id WAA24944; Fri, 16 Aug 1996 22:49:13 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id WAA27218; Fri, 16 Aug 1996 22:49:12 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id WAA07148; Fri, 16 Aug 1996 22:31:14 +0200 (MET DST) From: J Wunsch Message-Id: <199608162031.WAA07148@uriah.heep.sax.de> Subject: Re: netdb.h and -traditional... To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Fri, 16 Aug 1996 22:31:14 +0200 (MET DST) Cc: ponds!rivers@dg-rtp.dg.com (Thomas David Rivers) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199608161308.JAA00494@lakes.water.net> from Thomas David Rivers at "Aug 16, 96 09:08:44 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Thomas David Rivers wrote: > 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. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)