Use the kernel's struct stat instead of libc's.
diff --git a/file.c b/file.c
index 6a97b3d..b25cab7 100644
--- a/file.c
+++ b/file.c
@@ -453,12 +453,21 @@
}
#endif
+#ifdef LINUX
+/* Get the kernel's idea of struct stat. */
+#define stat kernel_stat
+#include <asm/stat.h>
+#undef stat
+#else /* LINUX */
+#define kernel_stat stat
+#endif /* LINUX */
+
static void
printstat(tcp, addr)
struct tcb *tcp;
int addr;
{
- struct stat statbuf;
+ struct kernel_stat statbuf;
#ifdef LINUXSPARC
if (current_personality == 1) {