From owner-freebsd-hackers Wed Oct 27 7:20:25 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 5E0A814C92 for ; Wed, 27 Oct 1999 07:20:15 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id JAA38990; Wed, 27 Oct 1999 09:19:50 -0500 (CDT) (envelope-from dan) Date: Wed, 27 Oct 1999 09:19:50 -0500 From: Dan Nelson To: Roger Hardiman Cc: hackers@FreeBSD.ORG Subject: Re: Is there anything like #ifdef BSD Message-ID: <19991027091949.A38799@dan.emsphone.com> References: <3816CEDD.446B@cs.strath.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3816CEDD.446B@cs.strath.ac.uk>; from roger@cs.strath.ac.uk on Wed, Oct 27, 1999 at 11:07:25AM +0100 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 27), Roger Hardiman said: > I'm working with someone porting linux code to FreeBSD. Actually, > they want to port it to all BSDs. > > So, rather than having > #if defined (FreeBSD) || defined (NetBSD) > || defined (OpenBSD || defined (bsdi) > > I am looking for a > #if defined (BSD) > or #ifdef BSD Do you know that the code you will be putting inside this #ifdef is BSD-only code (and won't be used by OSF/1, HP-UX, Solaris, etc), or should you rather be using autoconf and checking for specific functions (setproctitle() as an example)? -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message