Skip to content

Commit

Permalink
pread64(3) is linux-specific and not declared on other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Aug 30, 2024
1 parent 398a3c2 commit 0a02b95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fs_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ namespace unix {

zsize_t FD::readAt(char* dest, zsize_t size, offset_t offset) const
{
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__HAIKU__)
# define PREAD pread
#else
#if defined(__linux__)
# define PREAD pread64
#else
# define PREAD pread
#endif
ssize_t full_size_read = 0;
auto size_to_read = size.v;
Expand Down

0 comments on commit 0a02b95

Please sign in to comment.