Hi,
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


Is there such a beast, and do the other BSDs have it too?

If not, I'll just go for the nice and simple
  #if defined (FreeBSD) || defined (NetBSD)
      || defined (OpenBSD || defined (bsdi)
  #define BSD
  #endif

in a global header file.

Roger
-- 
Roger Hardiman        | Telepresence Research Group
[EMAIL PROTECTED] | DMEM, University of Strathclyde
tel: 0141 548 2897    | Glasgow, Scotland, G1 1XJ, UK
fax: 0141 552 0557    | http://www.telepresence.strath.ac.uk


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to