[497] in NetBSD-Development

home help back first fref pref prev next nref lref last post

Re: __NetBSD__

daemon@ATHENA.MIT.EDU (Charles M. Hannum)
Sat Jan 28 02:59:19 1995

Date: Sat, 28 Jan 1995 02:58:51 -0500
From: "Charles M. Hannum" <mycroft@ai.mit.edu>
To: yoav@MIT.EDU
Cc: netbsd-dev@MIT.EDU
In-Reply-To: <199501271918.OAA00343@I-See-Everything-Twice.MIT.EDU> (yoav@MIT.EDU)


   okay? so what is the "correct" thing to use?

The POSIX Way (tm) is:

#include <unistd.h>
#ifdef _POSIX_VERSION

Or, to test for a particular POSIX.1 version:

#if _POSIX_VERSION >= 199803L

Of course, unistd.h doesn't exist on all systems.


home help back first fref pref prev next nref lref last post