From owner-freebsd-hackers Sat Aug 17 06:20:38 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA24561 for hackers-outgoing; Sat, 17 Aug 1996 06:20:38 -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 GAA24552 for ; Sat, 17 Aug 1996 06:20:36 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA20664; Sat, 17 Aug 1996 09:20:04 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Sat, 17 Aug 1996 09: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 HAA02344; Sat, 17 Aug 1996 07:58:58 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.7.5/8.6.9) id IAA08980; Sat, 17 Aug 1996 08:05:48 -0400 (EDT) Date: Sat, 17 Aug 1996 08:05:48 -0400 (EDT) From: Thomas David Rivers Message-Id: <199608171205.IAA08980@lakes.water.net> To: joerg_wunsch@uriah.heep.sax.de, ponds!freefall.cdrom.com!freebsd-hackers Subject: Re: netdb.h and -traditional... Content-Type: text 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. Yep - it's supposed to do that, but doesn't... A couple of whacks at should fix it. I played around with it a little, but when cdefs.h didn't appear to #define const (and the other keywords) away, I just quickly punted to my other fix. - Dave R. -