From ba64111dabe60f0cce109831cae11c37ab42b249 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 21 Feb 2011 19:06:01 +0000 Subject: david - no block size on windows --- src/file.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index 09d53de..8c8f540 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -236,9 +236,13 @@ Bu::size Bu::File::getSize() const Bu::size Bu::File::getBlockSize() const { +#ifdef WIN32 + return 4096; +#else struct stat st; fstat( fd, &st ); return st.st_blksize; +#endif } Bu::String Bu::File::getLocation() const -- cgit v1.2.3