From owner-freebsd-ports Thu Feb 1 02:08:21 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA13823 for ports-outgoing; Thu, 1 Feb 1996 02:08:21 -0800 (PST) Received: from nixpbe.pdb.sni.de (mail.sni.de [192.109.2.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA13808 for ; Thu, 1 Feb 1996 02:08:10 -0800 (PST) Received: (from nerv@localhost) by nixpbe.pdb.sni.de (8.6.12/8.6.12) id LAA07523 for ports@FreeBSD.ORG; Thu, 1 Feb 1996 11:08:01 +0100 Message-Id: <199602011008.LAA07523@nixpbe.pdb.sni.de> Subject: Re: Another Pentium gcc patch, -D__FreeBSD__=2 -Dbsd4_4 To: bde@zeta.org.au (Bruce Evans) Date: Thu, 1 Feb 96 11:03:54 MET From: Greg Lehey Cc: hackers@FreeBSD.ORG, ports@FreeBSD.ORG In-Reply-To: <199602010944.UAA24491@godzilla.zeta.org.au>; from "Bruce Evans" at Feb 1, 96 8:44 pm X-Mailer: xmail 2.4 (based on ELM 2.2 PL16) Sender: owner-ports@FreeBSD.ORG Precedence: bulk > >> The big mistake most porters make is they TRY to distinguish us from >> NetBSD and BSD/OS. Most "freebsd" distinctions are really 4.4 and later >> distinctions and should use the BSD define. > >> That's why you should use the sys/param.h method, becuase it's what >> everyone decided on as the STANDARD way to do this. If you gratuitously > > The big mistake most porters make is they TRY to distinguish BSD from > foonix. Most "freebsd" distinctions are really for POSIX and other things > that every modern OS has and shouldn't use the BSD define. Most of the time. As I mentioned in my last posting, it's frequently used to check for other things (in older software, you might find it used to guess whether the system has symlink(2), for example). The real problem is that you don't really want to go and change all the sources to get it to run, so to a certain extent you're at the mercy of the authors. > That's why you shouldn't use the sys/param.h method, becuase it's what > only BSDpersons decided on as a NONSTANDARD way to do this. Precisely. Greg