diff --git a/test/bug-mmap.c b/test/bug-mmap.c index af371dc..7e07af0 100644 --- a/test/bug-mmap.c +++ b/test/bug-mmap.c @@ -32,7 +32,7 @@ int main(void) { -#if defined _SC_PAGE_SIZE +#if defined _SC_PAGE_SIZE && defined MAP_POPULATE int fd = open("/etc/hosts", O_RDONLY); mmap(0, sysconf(_SC_PAGE_SIZE) * 2, PROT_READ, MAP_PRIVATE | MAP_POPULATE, fd, 0);