From owner-freebsd-hackers Mon Apr 28 10:01:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA24578 for hackers-outgoing; Mon, 28 Apr 1997 10:01:19 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA24560 for ; Mon, 28 Apr 1997 10:01:15 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id CAA26993; Tue, 29 Apr 1997 02:58:28 +1000 Date: Tue, 29 Apr 1997 02:58:28 +1000 From: Bruce Evans Message-Id: <199704281658.CAA26993@godzilla.zeta.org.au> To: freebsd-hackers@freefall.FreeBSD.ORG, ponds!rivers@dg-rtp.dg.com Subject: Re: netdb.h and -traditional. Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >I was attempting to compile some older non-ANSI programs, that >require the -traditional option on GCC. > >Unfortunately, netdb.h (and possibly other headers) use ANSI >keywords (notably - 'const') which breaks this. ANSI keywords are supposed to be defined away for non-ANSI compilers unless NON_ANSI_KEYWORDS is defined. However, this is broken for gcc -traditional. A comment in seems to say that this is intentional. >Should our header files be compilable by non-ANSI compilers? Not for much longer. Bruce