NetBSD post 2.0 has deprecated statfs in favor of statvfs. The statfs
system call still exists for compatibility purposes (if COMPAT_20),
but struct statfs has been removed from the header files.
This breaks the PowerPC simulator, which assumes that the existence of
the statfs function implies the existence of struct statfs.
This patch fixes this problem in the obvious way.
I'm not sure why the NetBSD emulation implements fstatfs(). With this
patch, it will stop doing so. If implementing fstatfs() is important,
somebody will have to add support for the new fstatvfs() system call.
Ian
* configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h.
Check for struct statfs.
* emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS.
* configure, config.in: Regenerate.