From owner-freebsd-ports Tue Feb 4 17:19:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA06576 for ports-outgoing; Tue, 4 Feb 1997 17:19:50 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id RAA06558; Tue, 4 Feb 1997 17:19:45 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0vrw19-0000Ho-00; Tue, 4 Feb 1997 18:19:19 -0700 To: davidn@unique.usn.blaze.net.au (David Nugent) Subject: Re: conditionally including Cc: obrien@NUXI.com (David O'Brien), freebsd-ports@freebsd.org (FreeBSD ports list), hackers@freebsd.org In-reply-to: Your message of "Mon, 03 Feb 1997 14:27:17 +1100." <19970203142717.VR58445@usn.blaze.net.au> References: <19970203142717.VR58445@usn.blaze.net.au> <199701280143.RAA06503@freefall.freebsd.org> <19970202135048.PN07710@dragon.nuxi.com> Date: Tue, 04 Feb 1997 18:19:19 -0700 From: Warner Losh Message-Id: Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 #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