Date: Fri, 7 Feb 1997 07:19:37 +1100 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, chuckr@glue.umd.edu Cc: freebsd-ports@freebsd.org, hackers@freebsd.org, imp@village.org, obrien@NUXI.com Subject: Re: conditionally including <sys/param.h> Message-ID: <199702062019.HAA02499@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> >Yes, but this whole thing got started because the #ifdef __FreeBSD__ >> >was slowly turning into >> > #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) >> >in a bunch of places due to those projects riding along on the FreeBSD >> >port's coat tails. >> >> Maybe include <sys/param.h> unconditionally? I'm not sure why I mentioned >> the __FreeBSD__ ifdef above. I've never liked ifdefing on the OS - >> it isn't necessary for one OS and gives too-large ifdefs for more than >> 2 OS's. You'll still need large ifdefs if configuration depends on the >> value of `BSD' and the value is OS-dependent. > >No, that wouldn't work. We're talking about something we'd ask authors of >packages that weren't written for FreeBSD to include (and to include for >NetBSD and OpenBSD) to get their packages to work with ours. This isn't But they certainly should accept anything with __FooBSD__ or BSD >= mmm or __FooBSD_version >= nnn. That would give 100-line ifdefs to support 100 OS's. It's also useless for communicating what is different in FooBSD. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702062019.HAA02499>