diff --git a/src/mem.cpp b/src/mem.cpp index 48a833f..da649f5 100644 --- a/src/mem.cpp +++ b/src/mem.cpp @@ -51,7 +51,7 @@ std::vector mem::read(loff_t offset, size_t bytes) struct iovec iov = {&buffer[0], buffer.size()}; - ssize_t bytes_read = preadv64(_fd, &iov, 1, offset); + ssize_t bytes_read = preadv(_fd, &iov, 1, offset); if (bytes_read == -1) { throw std::system_error(errno, std::system_category(),