Skip to content

Commit

Permalink
fix undeclared pread(3) on NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Aug 30, 2024
1 parent 398a3c2 commit 6bc077c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace unix {

zsize_t FD::readAt(char* dest, zsize_t size, offset_t offset) const
{
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__HAIKU__)
#if defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__HAIKU__)
# define PREAD pread
#else
# define PREAD pread64
Expand Down

0 comments on commit 6bc077c

Please sign in to comment.