summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--file.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b6c9cd0..12050bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2000-08-09 Wichert Akkerman <wakkerma@debian.org>
+ * file.c: update to reflect that st_ino suddenly became a long long
+ in the in Linux 2.4.0-test6
+
+2000-08-09 Wichert Akkerman <wakkerma@debian.org>
+
* test/clone.c: minor fixup
* Another bunch of patches from John Hughes merged:
* signal.c:
diff --git a/file.c b/file.c
index e285c58..a53d229 100644
--- a/file.c
+++ b/file.c
@@ -643,10 +643,18 @@ long addr;
}
if (!abbrev(tcp)) {
+#ifdef HAVE_LONG_LONG
+ tprintf("{st_dev=makedev(%lu, %lu), st_ino=%llu, st_mode=%s, ",
+#else
tprintf("{st_dev=makedev(%lu, %lu), st_ino=%lu, st_mode=%s, ",
+#endif
(unsigned long) major(statbuf.st_dev),
(unsigned long) minor(statbuf.st_dev),
+#ifdef HAVE_LONG_LONG
+ (unsigned long long) statbuf.st_ino,
+#else
(unsigned long) statbuf.st_ino,
+#endif
sprintmode(statbuf.st_mode));
tprintf("st_nlink=%lu, st_uid=%lu, st_gid=%lu, ",
(unsigned long) statbuf.st_nlink,