Subject: Checking for NetBSD version
To: None <>
From: None <>
List: current-users
Date: 11/17/2003 09:36:03

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?

#if 1
        /* NetBSD 1.x does not have separate read/write statistics. */
        perf->rbytes = drive.dk_bytes;
        perf->wbytes = drive.dk_bytes;
        perf->rbytes = drive.dk_rbytes;
        perf->wbytes = drive.dk_wbytes;