Skip to content

Commit

Permalink
src/mem.cpp: replace the deprecated preadv64 by preadv
Browse files Browse the repository at this point in the history
This fixes a compilation error with musl libc.
  • Loading branch information
doughdemon authored and dtrugman committed May 19, 2024
1 parent 967c1d5 commit 1423d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ std::vector<uint8_t> 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(),
Expand Down

0 comments on commit 1423d0b

Please sign in to comment.