meson: Don't even detect posix_madvise() on Darwin
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 5 Jun 2024 10:44:54 +0000 (12:44 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Jun 2024 08:33:38 +0000 (10:33 +0200)
commit12d7d0c2496efe6325e73b04578213b8ad0af093
tree220d23f49c2178ac5f3d84461f2a6a389053d56a
parent75dbebddb6a0f15bdfdae66d63de4905c793ccdb
meson: Don't even detect posix_madvise() on Darwin

On Darwin, posix_madvise() has the same return semantics as plain
madvise() [1]. That's not really what our usage expects.
Fortunately, madvise() is available and preferred anyways so we
may stop detecting posix_madvise() on Darwin.

1: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/man/man2/madvise.2.auto.html

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Message-ID: <00f71753bdeb8c0f049fda05fb63b84bb5502fb3.1717584048.git.mprivozn@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build