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(), diff --git a/test/test_utils.hpp b/test/test_utils.hpp index 9773df2..57c0b9b 100644 --- a/test/test_utils.hpp +++ b/test/test_utils.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include