From 21f0a7ec55bc201533981d3a98a4c142374ee2b8 Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Mon, 22 Dec 2003 10:37:20 +0000 Subject: [PATCH] win32/msvc6 does not have struct stat.st_blocks (plugin.c) --- zzip/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zzip/plugin.c b/zzip/plugin.c index 06d77ff..afd2839 100644 --- a/zzip/plugin.c +++ b/zzip/plugin.c @@ -33,7 +33,7 @@ zzip_filesize(int fd) if (fstat(fd, &st) < 0) return -1; -# ifdef DEBUG +# if defined DEBUG && ! defined _WIN32 if (! st.st_size && st.st_blocks > 1) /* seen on some darwin 10.1 machines */ fprintf(stderr, "broken fstat(2) ?? st_size=%ld st_blocks=%ld\n", (long) st.st_size, (long) st.st_blocks); -- 2.40.0