--- a/third_party/pfs/src/mem.cpp +++ b/third_party/pfs/src/mem.cpp @@ -51,7 +51,7 @@ 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(), --- a/third_party/pfs/test/test_utils.hpp +++ b/third_party/pfs/test/test_utils.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include