summaryrefslogtreecommitdiff
path: root/lib/Support/raw_ostream.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-09 20:45:04 +0000
committerChris Lattner <sabre@nondot.org>2010-04-09 20:45:04 +0000
commit21aa347c2816aa8fc635ad05c5ab786234b32c7e (patch)
tree31267a53e38be19682f5395c271d5191c9e2766f /lib/Support/raw_ostream.cpp
parent2ebad5ad41bd4630b0ee5ec5bb2594f30557a351 (diff)
downloadllvm-21aa347c2816aa8fc635ad05c5ab786234b32c7e.tar.gz
llvm-21aa347c2816aa8fc635ad05c5ab786234b32c7e.tar.bz2
llvm-21aa347c2816aa8fc635ad05c5ab786234b32c7e.tar.xz
add minix support, patch by Kees van Reeuwijk! PR6797
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/raw_ostream.cpp')
-rw-r--r--lib/Support/raw_ostream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp
index 7a02db1aeb..0b05c5449a 100644
--- a/lib/Support/raw_ostream.cpp
+++ b/lib/Support/raw_ostream.cpp
@@ -442,7 +442,8 @@ uint64_t raw_fd_ostream::seek(uint64_t off) {
}
size_t raw_fd_ostream::preferred_buffer_size() const {
-#if !defined(_MSC_VER) && !defined(__MINGW32__) // Windows has no st_blksize.
+#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(_MINIX)
+ // Windows and Minix have no st_blksize.
assert(FD >= 0 && "File not yet open!");
struct stat statbuf;
if (fstat(FD, &statbuf) != 0)