aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/emul_netbsd.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-09-24 18:39:41 +0000
committerAndrew Cagney <cagney@redhat.com>2004-09-24 18:39:41 +0000
commit1f362c96c335d3dd6bf9baee8b5e672fcbba1814 (patch)
tree013a9c5c1e297821d1678f5fc8214756cfef5143 /sim/ppc/emul_netbsd.c
parent00937274d339416c6fb6690b3cb4d7c1501d0176 (diff)
downloadgdb-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.c8
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 */