Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Apr 2000 00:42:28 +0200
From:      Gary Jennejohn <garyj@peedub.muc.de>
To:        "Thimble Smith" <tim@mysql.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: __FreeBSD__, BSD, _bsd, ? 
Message-ID:  <200004032242.AAA25159@peedub.muc.de>
In-Reply-To: Your message of "Mon, 03 Apr 2000 17:39:44 EDT." <20000403173944.C77729@threads.polyesthetic.msg> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Thimble Smith" writes:
>Hi.  I'm trying to port some code that uses bzero().  I want to
>do something like:
>
>#ifdef __FreeBSD__
>#include <string.h>
>#endif
>
>But __FreeBSD__ is too specific; it should be for any BSD.  What
>is the right symbol to use?  I could have sworn I saw a doc on
>this in /usr/share/doc, but I can't find it at all.  I looked at
>the handbook and tried searching, but didn't turn up anything.
>

BSD is probably best. It's defined in param.h on both FreeBSD and
NetBSD. I don't know about OpenBSD, but it's probably in there too.

---
Gary Jennejohn / garyj@muc.de gj@freebsd.org




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004032242.AAA25159>