From owner-freebsd-hackers Tue Apr 29 10:51:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA28879 for hackers-outgoing; Tue, 29 Apr 1997 10:51:07 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id KAA28867 for ; Tue, 29 Apr 1997 10:50:46 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA28428; Tue, 29 Apr 1997 13:50:04 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Tue, 29 Apr 1997 13:50 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.5/8.7.3) with ESMTP id MAA11809; Tue, 29 Apr 1997 12:53:19 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id MAA01192; Tue, 29 Apr 1997 12:59:56 -0400 (EDT) Date: Tue, 29 Apr 1997 12:59:56 -0400 (EDT) From: Thomas David Rivers Message-Id: <199704291659.MAA01192@lakes.water.net> To: ponds!lakes.water.net!rivers, ponds!opus.cts.cwu.edu!skynyrd Subject: Re: netdb.h and -traditional. Cc: ponds!freefall.cdrom.com!freebsd-hackers Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Chris Timmons writes: > > Could you say something like 'gcc -traditional -Dconst=""' to make them > disappear before the compiler sees them? Sure - which is exactly what I did for this particular instance. My "meta-question" is - should I have to do that, or are we going to support compiling older non-ANSI sources? > Aside from a user-hack of this > class I can't say I would be for mangling our include files any more than > they are already. > > You could probably lock yourself in a room with the O'Reilley perl and > regex books for a while and come up with some patterns to transform your > sources to be more reasonable wrt ISO c (which would be a better > investment in time spent :) Protoize, cproto and some other tools are available for this - so it's not a big problem... I just prefer that things keep compiling with newer releases, unchanged. Although, I recognize that change is going to be needed sooner or later or nothing moves forward... my philosphy is "break as little as possible." Also, if you look back in the mail archives; you'll see I run into this problem about once every 14 months or so... > > -Chris > > > On Mon, 28 Apr 1997, Thomas David Rivers wrote: > > > > > 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. > > > > Should our header files be compilable by non-ANSI compilers? > > > > - Dave Rivers - > > > >