Re: Is there anything like #ifdef BSD

1999-10-27 Thread Dan Nelson
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

Re: Is there anything like #ifdef BSD

1999-10-27 Thread Chuck Robey
On Wed, 27 Oct 1999, Dan Nelson wrote: 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 ||

Re: Is there anything like #ifdef BSD

1999-01-02 Thread Warner Losh
In message [EMAIL PROTECTED] Roger Hardiman writes: : #if defined (BSD) : or #ifdef BSD #include sys/param.h BSD will be defined on BSD systems, for what it is worth. However, these days #ifndef linux #endif works just about as well and is often time more accurate in describing what needs to