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 | 3252b93f98c2505678db154be2024e20d4ad777c (patch) | |
tree | e6ce742f9b1835c5f7ee5f22a8336bba6bb4ec7d /lib | |
parent | a2e223c1887c7374bebd0134bbac97211f83cd80 (diff) | |
download | external_llvm-3252b93f98c2505678db154be2024e20d4ad777c.zip external_llvm-3252b93f98c2505678db154be2024e20d4ad777c.tar.gz external_llvm-3252b93f98c2505678db154be2024e20d4ad777c.tar.bz2 |
Fix compilation errors on MSVC. Patch by Argiris Kirtzidis!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/MemoryBuffer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index 7a60b85..b170ea7 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/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) { |