Fix build on windows.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2014-06-13 02:36:09 +00:00
parent 4e2b922131
commit 7532b4038f
2 changed files with 90 additions and 85 deletions

View File

@@ -373,7 +373,7 @@ static std::error_code getOpenFileImpl(int FD, const char *Filename,
size_t BytesLeft = MapSize;
#ifndef HAVE_PREAD
if (lseek(FD, Offset, SEEK_SET) == -1)
return error_code(errno, std::generic_category());
return std::error_code(errno, std::generic_category());
#endif
while (BytesLeft) {