diff options
| author | Bill Wendling <isanbard@gmail.com> | 2008-04-01 22:09:20 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2008-04-01 22:09:20 +0000 |
| commit | fc9f25dab0f4a37c30e06032e57ceb66e5e00f18 (patch) | |
| tree | b61493044ce12d3a58afb01004866ebe84cd4c28 | |
| parent | 19a6dd9f2aa560e8e94b72eba4fa6b199ca70d35 (diff) | |
| download | bcm5719-llvm-fc9f25dab0f4a37c30e06032e57ceb66e5e00f18.tar.gz bcm5719-llvm-fc9f25dab0f4a37c30e06032e57ceb66e5e00f18.zip | |
Fix compilation errors on MSVC. Patch by Argiris Kirtzidis!
llvm-svn: 49055
| -rw-r--r-- | llvm/lib/Support/MemoryBuffer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp index 7a60b85b91e..b170ea72670 100644 --- a/llvm/lib/Support/MemoryBuffer.cpp +++ b/llvm/lib/Support/MemoryBuffer.cpp @@ -29,6 +29,7 @@ #include <sys/fcntl.h> #else #include <io.h> +#include <fcntl.h> #endif using namespace llvm; @@ -175,7 +176,7 @@ MemoryBuffer *MemoryBuffer::getFile(const char *Filename, std::string *ErrStr, int64_t FileSize) { int OpenFlags = 0; #ifdef O_BINARY - Flags |= O_BINARY; // Open input file in binary mode on win32. + OpenFlags |= O_BINARY; // Open input file in binary mode on win32. #endif int FD = ::open(Filename, O_RDONLY|OpenFlags); if (FD == -1) { |

