Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2000 18:37:41 -0400 (EDT)
From:      Larry Baird <lab@gta.com>
To:        freebsd-questions@freebsd.org
Cc:        "Thimble Smith" <tim@mysql.com>
Subject:   Re: __FreeBSD__, BSD, _bsd, ?
Message-ID:  <200004032237.SAA95678@gta.com>
In-Reply-To: <20000403173944.C77729@threads.polyesthetic.msg>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20000403173944.C77729@threads.polyesthetic.msg> you wrote:
> 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.

#include <sys/param.h>
#ifdef BSD
#include <string.h>
#endif


-- 
------------------------------------------------------------------------
Larry Baird                        | http://www.gnatbox.com
Global Technology Associates, Inc. | Orlando, FL
Email: lab@gta.com                 | TEL 407-380-0220, FAX 407-380-6080


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?200004032237.SAA95678>