diff --git a/Makefile b/Makefile index 0dc4200561..ff2a5ed787 100644 --- a/Makefile +++ b/Makefile @@ -512,7 +512,7 @@ ifneq (,$(findstring MINGW,$(uname_S))) NO_MKDTEMP = YesPlease NO_SVN_TESTS=YesPlease NO_PERL_MAKEMAKER=YesPlease - COMPAT_CFLAGS += -DNO_ST_BLOCKS -DSTRIP_EXTENSION=\".exe\" -D__USE_MINGW_ACCESS -DNOGDI -I compat + COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\" -D__USE_MINGW_ACCESS -DNOGDI -I compat COMPAT_OBJS += compat/mingw.o compat/fnmatch.o compat/regex.o EXTLIBS += -lws2_32 X = .exe diff --git a/builtin-count-objects.c b/builtin-count-objects.c index 762c024279..f00306fb67 100644 --- a/builtin-count-objects.c +++ b/builtin-count-objects.c @@ -43,11 +43,7 @@ static void count_objects(DIR *d, char *path, int len, int verbose, if (lstat(path, &st) || !S_ISREG(st.st_mode)) bad = 1; else -#ifndef NO_ST_BLOCKS (*loose_size) += xsize_t(st.st_blocks); -#else - (*loose_size) += xsize_t((st.st_size+511)/512); -#endif } if (bad) { if (verbose) {