[GRASS5] Re: [GRASSLIST:1960] can't find statvfs.h [r.terraflow on MaxOSX]
Glynn Clements
glynn.clements at virgin.net
Thu Dec 11 10:01:41 EST 2003
Hamish wrote:
> > > Or can the dependancy be written out of
> > > src.contrib/DUKE/r.terraflow/main.cc
> > >
> > > main.cc:#include <sys/statvfs.h>
> > > main.cc: struct statvfs statbuf;
> > > main.cc: statvfs(getenv(STREAM_TMPDIR), &statbuf);
> >
> > It could be made to use statfs() instead, i.e. change:
> ..
> > Or the check could simply be removed; it's just checking available
> > disk space.
> >
> > However, statfs() is listed as a BSD 4.4 function, so some systems may
> > have statvfs() but not statfs(). I can't find any standardisation
> > information for statvfs(), so it's possible that some systems may have
> > neither.
>
> OSX 10.3 only has /usr/include/sys/stat.h, ie neither.
How about <mount.h> or <sys/mount.h>?
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list