mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
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
This commit is contained in:
parent
f46dc79ac5
commit
969a46a948
@ -12,10 +12,15 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
|
#include "llvm/Config/config.h"
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
#include <fcntl.h>
|
#if defined(HAVE_UNISTD_H)
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
#if defined(HAVE_FCNTL_H)
|
||||||
|
# include <fcntl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
@ -30,6 +35,9 @@ using namespace llvm;
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
using namespace llvm;
|
||||||
|
|
||||||
|
|
||||||
// An out of line virtual method to provide a home for the class vtable.
|
// An out of line virtual method to provide a home for the class vtable.
|
||||||
void raw_ostream::handle() {}
|
void raw_ostream::handle() {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user