aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2011-02-21 19:06:01 +0000
committerDavid <david@xagasoft.com>2011-02-21 19:06:01 +0000
commitba64111dabe60f0cce109831cae11c37ab42b249 (patch)
tree25ef7308f8fa5f75cff557dd8f30c30bbdf2b226 /src
parent9af80a223128dd465aabdd311fdf529e97b40e13 (diff)
downloadlibbu++-ba64111dabe60f0cce109831cae11c37ab42b249.tar.gz
libbu++-ba64111dabe60f0cce109831cae11c37ab42b249.tar.bz2
libbu++-ba64111dabe60f0cce109831cae11c37ab42b249.tar.xz
libbu++-ba64111dabe60f0cce109831cae11c37ab42b249.zip
david - no block size on windows
Diffstat (limited to 'src')
-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