--- gvpe/src/vped.C 2003/10/14 19:45:35 1.9 +++ gvpe/src/vped.C 2003/10/14 19:57:55 1.10 @@ -241,7 +241,7 @@ /* Lock all pages into memory if requested */ -#if HAVE_MLOCKALL && HAVE_SYS_MMAN_H +#if HAVE_MLOCKALL && HAVE_SYS_MMAN_H && _POSIX_MEMLOCK if (do_mlock) if (mlockall (MCL_CURRENT | MCL_FUTURE)) slog (L_ERR, _("system call `%s' failed: %s"), "mlockall", strerror (errno));