aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
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
commita3872cd664c9d9fd08524e27ea258cff32fe6fc8 (patch)
tree31267a53e38be19682f5395c271d5191c9e2766f /lib/Support
parent3716552fc25a3c4ea11094b44126071017a2224b (diff)
downloadexternal_llvm-a3872cd664c9d9fd08524e27ea258cff32fe6fc8.zip
external_llvm-a3872cd664c9d9fd08524e27ea258cff32fe6fc8.tar.gz
external_llvm-a3872cd664c9d9fd08524e27ea258cff32fe6fc8.tar.bz2
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')
-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 7a02db1..0b05c54 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)