Skip to content

Commit

Permalink
Merge pull request #857 from Begasus/haiku
Browse files Browse the repository at this point in the history
Haiku build fix
  • Loading branch information
mgautierfr authored Feb 8, 2024
2 parents b243f44 + a713f9d commit a7776b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/file_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class MMapException : std::exception {};
char*
mmapReadOnly(int fd, offset_type offset, size_type size)
{
#if defined(__APPLE__) || defined(__OpenBSD__)
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__HAIKU__)
const auto MAP_FLAGS = MAP_PRIVATE;
#elif defined(__FreeBSD__)
const auto MAP_FLAGS = MAP_PRIVATE|MAP_PREFAULT_READ;
Expand Down
2 changes: 1 addition & 1 deletion src/fs_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace unix {

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

0 comments on commit a7776b3

Please sign in to comment.