From c7bd4d321d82e7396b9282ee1b80a498d2785f19 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 7 Aug 2007 01:05:19 +0000 Subject: [PATCH] 2007-08-05 Jan Kratochvil * file.c (printstat64): Test [HAVE_LONG_LONG] for st_size printing and cast to widest type available. --- file.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/file.c b/file.c index 22a8260c..6e6b3067 100644 --- a/file.c +++ b/file.c @@ -1061,7 +1061,11 @@ long addr; #endif /* !HAVE_STRUCT_STAT_ST_RDEV */ break; default: - tprintf("st_size=%llu, ", statbuf.st_size); +#ifdef HAVE_LONG_LONG + tprintf("st_size=%llu, ", (unsigned long long) statbuf.st_size); +#else + tprintf("st_size=%lu, ", (unsigned long) statbuf.st_size); +#endif break; } if (!abbrev(tcp)) { -- 2.40.0