Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Nov 1999 19:27:22 -0700
From:      Warner Losh <imp@village.org>
To:        Roger Hardiman <roger@cs.strath.ac.uk>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Is there anything like #ifdef BSD 
Message-ID:  <199911050227.TAA11285@harmony.village.org>
In-Reply-To: Your message of "Wed, 27 Oct 1999 11:07:25 BST." <3816CEDD.446B@cs.strath.ac.uk> 
References:  <3816CEDD.446B@cs.strath.ac.uk>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <3816CEDD.446B@cs.strath.ac.uk> 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 happen in the code
:-)

Warner


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?199911050227.TAA11285>