summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/file.cpp4
1 files changed, 4 insertions, 0 deletions
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
236 236
237Bu::size Bu::File::getBlockSize() const 237Bu::size Bu::File::getBlockSize() const
238{ 238{
239#ifdef WIN32
240 return 4096;
241#else
239 struct stat st; 242 struct stat st;
240 fstat( fd, &st ); 243 fstat( fd, &st );
241 return st.st_blksize; 244 return st.st_blksize;
245#endif
242} 246}
243 247
244Bu::String Bu::File::getLocation() const 248Bu::String Bu::File::getLocation() const