diff --git a/.cspell/words.txt b/.cspell/words.txt index eb1513d1..ee19abee 100644 --- a/.cspell/words.txt +++ b/.cspell/words.txt @@ -1,3 +1,4 @@ +_lseeki64 aarch64 advapi32 armv8 diff --git a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp index d8bd60a7..a096e134 100644 --- a/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp +++ b/repertory/librepertory/src/drives/winfsp/remotewinfsp/remote_server.cpp @@ -465,8 +465,8 @@ auto remote_server::fuse_read( res = -1; errno = ERANGE; } else if ((res = has_compat_open_info(handle, EBADF)) == 0) { - res = lseek(static_cast(handle), static_cast(read_offset), - SEEK_SET); + res = _lseeki64(static_cast(handle), static_cast<__int64>(read_offset), + SEEK_SET); if (res != -1) { data.resize(read_size); res = read(static_cast(handle), data.data(), @@ -519,8 +519,8 @@ auto remote_server::fuse_write( } else { res = has_compat_open_info(handle, EBADF); if (res == 0) { - res = lseek(static_cast(handle), static_cast(write_offset), - SEEK_SET); + res = _lseeki64(static_cast(handle), + static_cast<__int64>(write_offset), SEEK_SET); if (res != -1) { res = write(static_cast(handle), buffer, static_cast(write_size));