Berend de Boer wrote:
I compiled the latest release for FreeBSD. However it thought STAT_HAVEFS
(* you mean HAVE_STATFS :*)
was OK (in p/rts), but I don't have a sys/vfs.h anywhere on my system.
How can I fix this? I deleted the check for statfs in configure, but there should be a better way.
I think we need another configure check for sys/vfs.h (and probably sys/statvfs.h as well). configure can check for header files (`AC_CHECK_HEADERS'), and this is supposed to be the "best" (i.e., most portable) way...
Will you try it yourself (it should affect rts/configure.in, rts/rts-config.in and rts/file.c), or should I try to make a patch? If so, I need some information.
What is the correct way to stat a file system in BSD? Is it statfs() or statvfs() or something else, and which header does it need (if any). Perhaps you can send me the synopsis of the manpage and the declaration of the `struct statfs', `struct statvfs' or whatever it uses...
Frank
-- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan