Date: Wed, 27 Oct 1999 09:19:50 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Roger Hardiman <roger@cs.strath.ac.uk> Cc: hackers@FreeBSD.ORG Subject: Re: Is there anything like #ifdef BSD Message-ID: <19991027091949.A38799@dan.emsphone.com> In-Reply-To: <3816CEDD.446B@cs.strath.ac.uk>; from roger@cs.strath.ac.uk on Wed, Oct 27, 1999 at 11:07:25AM %2B0100 References: <3816CEDD.446B@cs.strath.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991027091949.A38799>