projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51fe650
)
Mingw also doesn't have st_blksize.
author
Dan Gohman
<gohman@apple.com>
Sat, 15 Aug 2009 21:41:03 +0000
(21:41 +0000)
committer
Dan Gohman
<gohman@apple.com>
Sat, 15 Aug 2009 21:41:03 +0000
(21:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79142
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/raw_ostream.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/raw_ostream.cpp
b/lib/Support/raw_ostream.cpp
index 485119b35da2967d8fdc520aa39e3fb59af7c0bc..ea9b801f182577b020344058cdf28af84b1d7e37 100644
(file)
--- a/
lib/Support/raw_ostream.cpp
+++ b/
lib/Support/raw_ostream.cpp
@@
-372,7
+372,7
@@
uint64_t raw_fd_ostream::seek(uint64_t off) {
}
size_t raw_fd_ostream::preferred_buffer_size() {
-#if !defined(_MSC_VER)
// Windows reportedly doesn't have
st_blksize.
+#if !defined(_MSC_VER)
&& !defined(__MINGW32__) // Windows has no
st_blksize.
assert(FD >= 0 && "File not yet open!");
struct stat statbuf;
if (fstat(FD, &statbuf) == 0) {