Subject: Re: Detecting statvfs without autoconf
To: Juan RP <juan@xtrarom.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-userlevel
Date: 01/05/2006 12:32:19
On Thu, 5 Jan 2006, Juan RP wrote:

> 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.

#ifdef __NetBSD__
#include <sys/param.h>
#endif

...

Please note that "300000000" is probably not the right number btw!


  - Hubert