Date: Thu, 9 Jan 1997 00:34:52 -0500 (EST) From: Chuck Robey <chuckr@glue.umd.edu> To: "David O'Brien" <obrien@cs.ucdavis.edu> Cc: Warner Losh <imp@village.org>, 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 Message-ID: <Pine.OSF.3.95.970108222924.15523B-100000@modem.eng.umd.edu> In-Reply-To: <199701082349.PAA09616@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/param.h> #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! ----------------------------+-----------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.970108222924.15523B-100000>