Skip to content

Commit 1423d0b

Browse files
doughdemondtrugman
authored andcommitted
src/mem.cpp: replace the deprecated preadv64 by preadv
This fixes a compilation error with musl libc.
1 parent 967c1d5 commit 1423d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-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(),

0 commit comments

Comments
 (0)