diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-10-19 01:21:55 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-10-19 01:21:55 +0000 |
commit | 1b5de0e7ee9e604d041cda1af544e27971ebeb81 (patch) | |
tree | c93822752e2813410a8356e34d6bcb5b23701385 /lib/Support/raw_ostream.cpp | |
parent | 11e8b74a7ae9ecd59b64180a59143e39bc3b9514 (diff) |
lib/Support/raw_ostream.cpp: Fix Cygwin's build.
setmode is provided by io.h on Cygwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/raw_ostream.cpp')
-rw-r--r-- | lib/Support/raw_ostream.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index f3bcfa1b14..dceccad161 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -32,6 +32,10 @@ # include <fcntl.h> #endif +#if defined(__CYGWIN__) +#include <io.h> +#endif + #if defined(_MSC_VER) #include <io.h> #include <fcntl.h> |