Subject: Re: "fs.c:80: error: storage size of 's' isn't known"
To: None <joel@carnat.net>
From: Juan RP <juan@xtrarom.org>
List: pkgsrc-users
Date: 09/07/2006 22:58:28
On Thu, 7 Sep 2006 22:55:24 +0200
Joel CARNAT <joel@carnat.net> wrote:

> Hi,
> 
> I'm trying to get "comky" to work under NetBSD.
> During compilation, the following error occurs:
> ########################################################################
> fs.c: In function 'update_fs_stat':
> fs.c:80: error: storage size of 's' isn't known
> fs.c:81: warning: implicit declaration of function 'statfs'
> fs.c:80: warning: unused variable 's'

You did not specify what NetBSD version you are using... but
probably it's >=3.0 which uses statvfs.

The problem is what s is defined as "struct statfs s" and looks
like you'll need it as "struct statvfs s".