Skip to content

Commit 1e21c0c

Browse files
committed
REVERT: Tested changes
1 parent a1a6374 commit 1e21c0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/mem.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ std::vector<uint8_t> mem::read(loff_t offset, size_t bytes)
5151

5252
struct iovec iov = {&buffer[0], buffer.size()};
5353

54-
ssize_t bytes_read = preadv64(_fd, &iov, 1, offset);
54+
ssize_t bytes_read = preadv(_fd, &iov, 1, offset);
5555
if (bytes_read == -1)
5656
{
5757
throw std::system_error(errno, std::system_category(),

test/test_utils.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <stdint.h>
55
#include <stdlib.h>
66
#include <unistd.h>
7+
#include <sys/types.h>
78

89
#include <linux/kdev_t.h>
910

0 commit comments

Comments
 (0)