diff --git a/mach/mach_init.c b/mach/mach_init.c index a0d9f7f5e2..42b9cacf68 100644 --- a/mach/mach_init.c +++ b/mach/mach_init.c @@ -17,6 +17,7 @@ #include #include +#include #include mach_port_t __mach_task_self_; @@ -38,7 +39,10 @@ __mach_init (void) __mach_host_self_ = (__mach_host_self) (); __mig_init (0); -#ifdef HAVE_HOST_PAGE_SIZE +#ifdef PAGE_SIZE + __vm_page_size = PAGE_SIZE; + (void) err; +#elif defined (HAVE_HOST_PAGE_SIZE) if (err = __host_page_size (__mach_host_self (), &__vm_page_size)) _exit (err); #else