diff options
author | David <david@xagasoft.com> | 2011-02-21 19:06:01 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2011-02-21 19:06:01 +0000 |
commit | ba64111dabe60f0cce109831cae11c37ab42b249 (patch) | |
tree | 25ef7308f8fa5f75cff557dd8f30c30bbdf2b226 /src/file.cpp | |
parent | 9af80a223128dd465aabdd311fdf529e97b40e13 (diff) | |
download | libbu++-ba64111dabe60f0cce109831cae11c37ab42b249.tar.gz libbu++-ba64111dabe60f0cce109831cae11c37ab42b249.tar.bz2 libbu++-ba64111dabe60f0cce109831cae11c37ab42b249.tar.xz libbu++-ba64111dabe60f0cce109831cae11c37ab42b249.zip |
david - no block size on windows
Diffstat (limited to '')
-rw-r--r-- | src/file.cpp | 4 |
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 | ||
237 | Bu::size Bu::File::getBlockSize() const | 237 | Bu::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 | ||
244 | Bu::String Bu::File::getLocation() const | 248 | Bu::String Bu::File::getLocation() const |