Subject: Re: statfs->statvfs troubles.
To: <>
From: David Laight <>
List: current-users
Date: 04/24/2004 09:46:37
On Fri, Apr 23, 2004 at 10:29:46PM +0000, Christos Zoulas wrote:
> In article <>,
> David Laight <> wrote:
> >> Hmm, src/UPDATING was updated finally:
> >> 
> >> 20040418:
> >>         Statfs(2) and friends have been replaced with statvfs(2). Before
> >>         installing a newly build userland make sure that you are running
> >>         a newly built kernel with COMPAT_20 set. In addition your libc
> >>         build might not work (undefined SYS_statfs symbol) because make
> >>         clean does not know how to remove files it does not know about
> >>         anymore. Manually remove all objects from the libc build directory.
> >
> >The following patch to src/lib/libc/sys/ probably fixes
> >things.  Can someone with a broken obj tree try it and then do an
> >update build?
> I know, but is it worth crudding the Makefile with this?

Most of the crud is because you have to remove entries from .depend.

A much easier way would be to rename statsfs.c to (say) statfs_compat.c


David Laight: