From owner-freebsd-hackers Fri Aug 16 06:20:56 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA00752 for hackers-outgoing; Fri, 16 Aug 1996 06:20:56 -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 GAA00720 for ; Fri, 16 Aug 1996 06:20:48 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA09074; Fri, 16 Aug 1996 09:20:09 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Fri, 16 Aug 1996 09:20 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.UUCP (8.7.5/8.7.3) with ESMTP id JAA00322 for ; Fri, 16 Aug 1996 09:02:27 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.7.5/8.6.9) id JAA00494 for freebsd-hackers@freefall.cdrom.com; Fri, 16 Aug 1996 09:08:44 -0400 (EDT) Date: Fri, 16 Aug 1996 09:08:44 -0400 (EDT) From: Thomas David Rivers Message-Id: <199608161308.JAA00494@lakes.water.net> To: ponds!freefall.cdrom.com!freebsd-hackers Subject: netdb.h and -traditional... 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. I did a quick grep(1) of /usr/include and didn't see any other uses of 'const' for a return type... but, it was a really quick scan... I did see other files that were missing the __P and made similar ANSI assumptions; but they were new files that wouldn't be #include'd by older code... Although, looking at cdefs.h - I see you should be able to define NO_ANSI_KEYWORDS to get the behaviour I'm after. It just seems to me that 'const' as part of a visible type declaration should be defined away for the same reason that function prototypes are, at the same time they are. Opinions? - Dave Rivers -