From owner-freebsd-bugs Wed Dec 12 12: 8: 1 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id D5B3E37B405 for ; Wed, 12 Dec 2001 12:07:57 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id fBCK7ue31788; Wed, 12 Dec 2001 12:07:56 -0800 Date: Wed, 12 Dec 2001 12:07:56 -0800 From: Brooks Davis To: Sheldon Hearn Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: misc/32760: Please MFC /usr/include/malloc.h to -STABLE. Message-ID: <20011212120756.A29554@Odin.AC.HMC.Edu> References: <20011212114141.A23312@Odin.AC.HMC.Edu> <7683.1008187167@axl.seasidesoftware.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5i In-Reply-To: <7683.1008187167@axl.seasidesoftware.co.za>; from sheldonh@starjuice.net on Wed, Dec 12, 2001 at 09:59:27PM +0200 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Dec 12, 2001 at 09:59:27PM +0200, Sheldon Hearn wrote: >=20 > On Wed, 12 Dec 2001 11:41:42 PST, Brooks Davis wrote: >=20 > > If there's a way to make malloc.h optionaly fatel that would be a good > > first step since we could strongly encourage porters to enable that and > > perhaps enable it on bento for good measure. >=20 > That sounds pretty easy, provided the affected ports honour CFLAGS. :-) >=20 > Wouldn't something like this work? >=20 > #if WANT_STDLIB_MALLOC > #if __STDC__ > #error " has been replaced by " > #else > #if __GNUC__ > #warning "this file includes which is deprecated, use instead" > #endif > #include > #endif > #endif That looks workable. Once ports that honor CFLAGS are fixed, we could either throw the switch with due fanfare or see what happens if bento runs with a current malloc.h. If nothing else it would expose some ports that need their CFLAGS support fixed. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message