[llvm-commits] [llvm] r79142 - /llvm/trunk/lib/Support/raw_ostream.cpp
Dan Gohman
gohman at apple.com
Sat Aug 15 14:41:04 PDT 2009
Author: djg
Date: Sat Aug 15 16:41:03 2009
New Revision: 79142
URL: http://llvm.org/viewvc/llvm-project?rev=79142&view=rev
Log:
Mingw also doesn't have st_blksize.
Modified:
llvm/trunk/lib/Support/raw_ostream.cpp
Modified: llvm/trunk/lib/Support/raw_ostream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/raw_ostream.cpp?rev=79142&r1=79141&r2=79142&view=diff
==============================================================================
--- llvm/trunk/lib/Support/raw_ostream.cpp (original)
+++ llvm/trunk/lib/Support/raw_ostream.cpp Sat Aug 15 16:41:03 2009
@@ -372,7 +372,7 @@
}
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) {
More information about the llvm-commits
mailing list