From owner-freebsd-bugs Fri Apr 17 23:50:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA13663 for freebsd-bugs-outgoing; Fri, 17 Apr 1998 23:50:16 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA13653 for ; Sat, 18 Apr 1998 06:50:12 GMT (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id QAA11104; Sat, 18 Apr 1998 16:45:41 +1000 Date: Sat, 18 Apr 1998 16:45:41 +1000 From: Bruce Evans Message-Id: <199804180645.QAA11104@godzilla.zeta.org.au> To: freebsd-bugs@hub.freebsd.org, rivers@dignus.com Subject: Re: bin/6332: time.h doesn't compile with -traditional Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > >Fix: > > > > Replace uses of 'const' with the __const keyword defined in cdefs.h. > > > > Let me add to that, that uses of "const" for prototype definitions > aren't the problem; it's uses of "const" outside of the __P() macro. This may be another bug :-). cdefs.h gives a null __P() for all non-ANSI compilers although `gcc -traditional' supports prototypes. > I imagine such uses are more infrequent. Yes, but they are still frequent. My header checker reports about 36 headers that compile with `gcc -traditional -Dconst= -Dvolatile=' but not with `gcc -traditional'. is the most annoying of these because it is included by many other headers, so it is worth fixing. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message