diff options
author | Alexander Færøy <ahf@torproject.org> | 2020-07-29 13:57:47 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2020-07-29 13:57:47 +0000 |
commit | 8e690ce736b3c61a1f007df4a1cd542e97e602c5 (patch) | |
tree | c016a41af6b4d650d0989621fb5d0c3aa4d2ddcf /src/lib/fdio | |
parent | 0a38e02fb3b2a4b707b6aaf989974a4c4d6e1adb (diff) | |
parent | dcc60294ad4fe349003d6aeea774d8652744358a (diff) | |
download | tor-8e690ce736b3c61a1f007df4a1cd542e97e602c5.tar.gz tor-8e690ce736b3c61a1f007df4a1cd542e97e602c5.zip |
Merge remote-tracking branch 'tor-gitlab/mr/85' into maint-0.4.4
Diffstat (limited to 'src/lib/fdio')
-rw-r--r-- | src/lib/fdio/fdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/fdio/fdio.c b/src/lib/fdio/fdio.c index df4196aacd..56e3818f5c 100644 --- a/src/lib/fdio/fdio.c +++ b/src/lib/fdio/fdio.c @@ -48,7 +48,7 @@ off_t tor_fd_getpos(int fd) { #ifdef _WIN32 - return (off_t) _lseek(fd, 0, SEEK_CUR); + return (off_t) _lseeki64(fd, 0, SEEK_CUR); #else return (off_t) lseek(fd, 0, SEEK_CUR); #endif @@ -61,7 +61,7 @@ int tor_fd_seekend(int fd) { #ifdef _WIN32 - return _lseek(fd, 0, SEEK_END) < 0 ? -1 : 0; + return _lseeki64(fd, 0, SEEK_END) < 0 ? -1 : 0; #else off_t rc = lseek(fd, 0, SEEK_END) < 0 ? -1 : 0; #ifdef ESPIPE @@ -80,7 +80,7 @@ int tor_fd_setpos(int fd, off_t pos) { #ifdef _WIN32 - return _lseek(fd, pos, SEEK_SET) < 0 ? -1 : 0; + return _lseeki64(fd, pos, SEEK_SET) < 0 ? -1 : 0; #else return lseek(fd, pos, SEEK_SET) < 0 ? -1 : 0; #endif |