diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-09-24 18:39:41 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-09-24 18:39:41 +0000 |
commit | 1f362c96c335d3dd6bf9baee8b5e672fcbba1814 (patch) | |
tree | 013a9c5c1e297821d1678f5fc8214756cfef5143 /sim/ppc/emul_netbsd.c | |
parent | 00937274d339416c6fb6690b3cb4d7c1501d0176 (diff) | |
download | gdb-1f362c96c335d3dd6bf9baee8b5e672fcbba1814.zip gdb-1f362c96c335d3dd6bf9baee8b5e672fcbba1814.tar.gz gdb-1f362c96c335d3dd6bf9baee8b5e672fcbba1814.tar.bz2 |
2004-09-24 Ian Lance Taylor <ian@wasabisystems.com>
Committed by Andrew Cagney.
* 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.
Diffstat (limited to 'sim/ppc/emul_netbsd.c')
-rw-r--r-- | sim/ppc/emul_netbsd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c index 3ea03f6..18ca73b 100644 --- a/sim/ppc/emul_netbsd.c +++ b/sim/ppc/emul_netbsd.c @@ -94,6 +94,14 @@ int getrusage(); #include <sys/sysctl.h> #include <sys/mount.h> extern int getdirentries(int fd, char *buf, int nbytes, long *basep); + +/* NetBSD post 2.0 has the statfs system call (if COMPAT_20), but does + not have struct statfs. In this case don't implement fstatfs. + FIXME: Should implement fstatvfs. */ +#ifndef HAVE_STRUCT_STATFS +#undef HAVE_FSTATFS +#endif + #else /* If this is not netbsd, don't allow fstatfs or getdirentries at this time */ |