[llvm-commits] [llvm] r49055 - /llvm/trunk/lib/Support/MemoryBuffer.cpp
Bill Wendling
isanbard at gmail.com
Tue Apr 1 15:09:20 PDT 2008
Author: void
Date: Tue Apr 1 17:09:20 2008
New Revision: 49055
URL: http://llvm.org/viewvc/llvm-project?rev=49055&view=rev
Log:
Fix compilation errors on MSVC. Patch by Argiris Kirtzidis!
Modified:
llvm/trunk/lib/Support/MemoryBuffer.cpp
Modified: llvm/trunk/lib/Support/MemoryBuffer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/MemoryBuffer.cpp?rev=49055&r1=49054&r2=49055&view=diff
==============================================================================
--- llvm/trunk/lib/Support/MemoryBuffer.cpp (original)
+++ llvm/trunk/lib/Support/MemoryBuffer.cpp Tue Apr 1 17:09:20 2008
@@ -29,6 +29,7 @@
#include <sys/fcntl.h>
#else
#include <io.h>
+#include <fcntl.h>
#endif
using namespace llvm;
@@ -175,7 +176,7 @@
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) {
More information about the llvm-commits
mailing list