Skip to content

Commit

Permalink
Revert r289184, we need more configury for Darwin and *BSD.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289185 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
pcc committed Dec 9, 2016
1 parent 85ea24d commit 50e5aca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Support/raw_ostream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,7 @@ void raw_fd_ostream::close() {
uint64_t raw_fd_ostream::seek(uint64_t off) {
assert(SupportsSeeking && "Stream does not support seeking!");
flush();
#ifdef LLVM_ON_WIN32
pos = ::_lseeki64(FD, off, SEEK_SET);
#else
pos = ::lseek64(FD, off, SEEK_SET);
#endif
pos = ::lseek(FD, off, SEEK_SET);
if (pos == (uint64_t)-1)
error_detected();
return pos;
Expand Down

0 comments on commit 50e5aca

Please sign in to comment.