Subject: Re: Checking for NetBSD version
To: None <>
From: Alan Barrett <>
List: current-users
Date: 11/17/2003 10:13:06
On Mon, 17 Nov 2003, wrote:
> What is "the correct way" of checking NetBSD version (1.x vs -current) in
> source code (with preprocessor)? In other words, how should I rewrite
> the "if 1" line in the following code fragment?

#include <sys/param.h>
#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106110000)
	/* NetBSD < 1.6K does not have separate read/write statistics. */

--apb (Alan Barrett)