Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Feb 1997 18:19:19 -0700
From:      Warner Losh <imp@village.org>
To:        davidn@unique.usn.blaze.net.au (David Nugent)
Cc:        obrien@NUXI.com (David O'Brien), freebsd-ports@freebsd.org (FreeBSD ports list), hackers@freebsd.org
Subject:   Re: conditionally including <sys/param.h> 
Message-ID:  <E0vrw19-0000Ho-00@rover.village.org>
In-Reply-To: Your message of "Mon, 03 Feb 1997 14:27:17 %2B1100." <19970203142717.VR58445@usn.blaze.net.au> 
References:  <19970203142717.VR58445@usn.blaze.net.au>  <199701280143.RAA06503@freefall.freebsd.org> <Pine.OSF.3.95q.970127210526.2115E-100000@uplink.eng.umd.edu> <19970202135048.PN07710@dragon.nuxi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <19970203142717.VR58445@usn.blaze.net.au> David Nugent writes:
: > "#if (defined(__unix__) || defined(unix))" was the best way to

#if (defined(unix) || defined(__unix__)) && !defined(USG)
#include <sys/param.h>
#endif

was how the discussion ended (at least in private mail), since USG was
defined on SYS V and SYS III systems *AND* usually you want to tell if
you are on a modern BSD system, so it doesn't hurt to exclude some SYS
V systems.

: I said exactly this some weeks back and was told I was wrong,
: contrary to my own experience of many years working with
: sysv r3's. Oh well. :-)

That's true.  I think I (mistakenly) told you that.

: svr4 apparently does have it, but not sysv before that. Most
: if not all of those do predefine unix or __unix__.

sysvr4 does have it, but nothing earlier.  Most V7 and later systems
define unix or __unix__.

Just my two cents (a little late) to the discussion.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0vrw19-0000Ho-00>