Subject: Re: Detecting statvfs without autoconf
To: None <tech-userlevel@netbsd.org>
From: None <joerg@britannica.bec.de>
List: tech-userlevel
Date: 01/05/2006 14:50:00
On Thu, Jan 05, 2006 at 06:32:53AM -0500, Thomas Dickey wrote:
> On Thu, Jan 05, 2006 at 12:26:07PM +0100, Christoph Kaegi wrote:
> > Thanks! I went for:
> >
> > #if defined(SOLARIS) || __NetBSD_Version__ >= 300000000
>
> and if __NetBSD_Version__ isn't defined, it won't work with some compilers.
It works, since undefined macros have a value of 0. Many compilers
generate warnings though.
Joerg