mono already tries to detect whether mincore(2) is available, but one place was missing a check. Upstream should probably add #ifdef checks for all the sys/mman.h functions wrapped in this file, to replace the existing "#ifndef HAIKU" checks. ok sthen@