Skip to content

Commit

Permalink
silence warning on musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
MikkelSchubert committed Jan 12, 2025
1 parent 5ae23da commit 9635be5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/managed_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class io_manager
} else if (reader->filename() != "-") {
reader->m_file = io_manager::fopen(reader->filename(), "rb");

#if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L
#if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600) || \
(defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L)
posix_fadvise(fileno(reader->m_file), 0, 0, POSIX_FADV_WILLNEED);
posix_fadvise(fileno(reader->m_file), 0, 0, POSIX_FADV_SEQUENTIAL);
#endif
Expand Down

0 comments on commit 9635be5

Please sign in to comment.