diff --git a/gtests/net/packetdrill/run.c b/gtests/net/packetdrill/run.c index a0a7711f925a548bd3a9ba4d7b6ec1ee8ccc5def..f079e185a624c57d07dc0e80d8bf9356449e105c 100644 --- a/gtests/net/packetdrill/run.c +++ b/gtests/net/packetdrill/run.c @@ -466,8 +466,10 @@ void set_scheduling_priority(void) */ void lock_memory(void) { +#if !defined(__APPLE__) if (mlockall(MCL_CURRENT | MCL_FUTURE)) die_perror("lockall(MCL_CURRENT | MCL_FUTURE)"); +#endif } /* Wait for and return the wall time at which we should start the