Line
Link Here
|
0 |
-- a/third_party/pfs/src/mem.cpp |
0 |
++ b/third_party/pfs/src/mem.cpp |
Lines 51-57
Link Here
|
51 |
|
51 |
|
52 |
struct iovec iov = {&buffer[0], buffer.size()}; |
52 |
struct iovec iov = {&buffer[0], buffer.size()}; |
53 |
|
53 |
|
54 |
ssize_t bytes_read = preadv64(_fd, &iov, 1, offset); |
54 |
ssize_t bytes_read = preadv(_fd, &iov, 1, offset); |
55 |
if (bytes_read == -1) |
55 |
if (bytes_read == -1) |
56 |
{ |
56 |
{ |
57 |
throw std::system_error(errno, std::system_category(), |
57 |
throw std::system_error(errno, std::system_category(), |
58 |
-- a/third_party/pfs/test/test_utils.hpp |
58 |
++ b/third_party/pfs/test/test_utils.hpp |
Lines 4-9
Link Here
|
4 |
#include <stdint.h> |
4 |
#include <stdint.h> |
5 |
#include <stdlib.h> |
5 |
#include <stdlib.h> |
6 |
#include <unistd.h> |
6 |
#include <unistd.h> |
|
|
7 |
#include <sys/types.h> |
7 |
|
8 |
|
8 |
#include <linux/kdev_t.h> |
9 |
#include <linux/kdev_t.h> |
9 |
|
10 |
|