Revert r289184, we need more configury for Darwin and *BSD.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Peter Collingbourne 2016-12-09 05:04:30 +00:00
parent 85ea24d6da
commit 50e5aca640

View File

@ -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;