Subject: Re: Detecting statvfs without autoconf
To: Christoph Kaegi <kgc@zhwin.ch>
From: Juan RP <juan@xtrarom.org>
List: tech-userlevel
Date: 01/05/2006 12:29:44
On Thu, 5 Jan 2006 12:26:07 +0100
Christoph Kaegi <kgc@zhwin.ch> wrote:

> Thanks! I went for:
> 
>   #if defined(SOLARIS) || __NetBSD_Version__  >= 300000000
>   # include <sys/types.h>
>   # include <sys/statvfs.h>
>   #else
>   # include <sys/param.h>
>   # include <sys/mount.h>
>   #endif

Note to check for __NetBSD_Version__ you'll have to include
<sys/param.h> before.