From c9ea9e81ba5a47d7d738916e36748468c2ac8d54 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 22 Apr 2009 22:43:31 +1000 Subject: coreutils/ls: ignore st_blocks as it does not exist on Windows --- coreutils/ls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coreutils/ls.c b/coreutils/ls.c index 95c4b4be6..731585532 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -584,7 +584,11 @@ static int list_single(struct dnode *dn) column += printf("%7ld ", (long) dn->dstat.st_ino); break; case LIST_BLOCKS: +#ifdef __MINGW32__ + column += printf("%4"OFF_FMT"d ", 0); +#else column += printf("%4"OFF_FMT"d ", (off_t) dn->dstat.st_blocks >> 1); +#endif break; case LIST_MODEBITS: column += printf("%-10s ", (char *) bb_mode_string(dn->dstat.st_mode)); -- cgit v1.2.3-55-g6feb