From owner-freebsd-ports Wed Jan 8 21:35:02 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id VAA05192 for ports-outgoing; Wed, 8 Jan 1997 21:35:02 -0800 (PST) Received: from po2.glue.umd.edu (root@po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id VAA05166 for ; Wed, 8 Jan 1997 21:34:59 -0800 (PST) Received: from modem.eng.umd.edu (modem.eng.umd.edu [129.2.98.187]) by po2.glue.umd.edu (8.8.3/8.7.3) with ESMTP id AAA03928; Thu, 9 Jan 1997 00:34:53 -0500 (EST) Received: from localhost (chuckr@localhost) by modem.eng.umd.edu (8.8.3/8.7.3) with SMTP id AAA15584; Thu, 9 Jan 1997 00:34:52 -0500 (EST) X-Authentication-Warning: modem.eng.umd.edu: chuckr owned process doing -bs Date: Thu, 9 Jan 1997 00:34:52 -0500 (EST) From: Chuck Robey X-Sender: chuckr@modem.eng.umd.edu To: "David O'Brien" cc: Warner Losh , m230761@ingenieria.ingsala.unal.edu.co, asami@cs.berkeley.edu, ache@nagual.ru, ports@freebsd.org Subject: Re: Niklas Hallqvist: archivers/hpack.non-usa.only In-Reply-To: <199701082349.PAA09616@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 8 Jan 1997, David E. O'Brien wrote: > I have virtually always tried to follow the Handbook and use the BSD macro. > But way too often it is too hard to bring in sys/param.h. And having to > include sys/param.h just to find out what OS I'm running is quite B.S. > No other system I know of is quite this way. On Suns people have always > looked at the sun macro. We really need a macro that says we are 4.4BSD. > This is a macro FreeBSD, NetBSD, OpenBSD, and BSDI need to have in the > *preprocessor* -- no more extranious files. > > So, my proprosal is for each of us to add __44bsd__ to our list of > predefined macros. If this is not liked, then hell, lets add BSD with the > right contstant to our cpp. David .... can't we just have an if exists to detect sys/param.h, then something like this in the makefile .if exists /usr/include/sys/param.h CFLAGS+=-DHAVE_PARAM_H .endif and in the source file #ifdef HAVE_PARAM_H #include #endif and then below do the #ifdefs based on BSD4_4 > > Not only will this help the FreeBSD ports team, but application software > developers too. Often I find from others (ie. some package on the net), > with __FreeBSD__ or __NetBSD__ because they don't know of our silly method > of including sys/param.h and looking at BSD. > > If we can do this, I'll even take on the task of changing all the patches > in our ports collection. > > -- David (obrien@FreeBSD.org) > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------