From: Peter Collingbourne Date: Fri, 9 Dec 2016 05:04:30 +0000 (+0000) Subject: Revert r289184, we need more configury for Darwin and *BSD. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50e5aca640264f382bcfb249cb2a2fbe22aa8353;p=llvm 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 --- diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index c51f1d376b0..92c7967cd8f 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -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;