llvm.org GIT mirror llvm / 969a46a
improve support for systems that need unistd.h to get STDOUT_FILENO. Patch contributed by Bjorn Reese! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55179 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 11 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Support/raw_ostream.h"
14 #include "llvm/Config/config.h"
1415 #include
15 using namespace llvm;
16
17 #include
16
17 #if defined(HAVE_UNISTD_H)
18 # include
19 #endif
20 #if defined(HAVE_FCNTL_H)
21 # include
22 #endif
1823
1924 #if defined(_MSC_VER)
2025 #include
2833 # define STDERR_FILENO 2
2934 #endif
3035 #endif
36
37 using namespace llvm;
38
3139
3240 // An out of line virtual method to provide a home for the class vtable.
3341 void raw_ostream::handle() {}