From 2b1bb233b3999a82188a471100f33e9b7b1d2c8b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 20 Nov 2009 14:45:29 -0500 Subject: [PATCH] Use the same mlockall checks with tor_set_max_memlock --- src/common/compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/compat.c b/src/common/compat.c index 4fc44afac9..dbd3197a88 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -2204,7 +2204,7 @@ tor_threads_init(void) } #endif -#ifdef HAVE_SYS_MMAN_H +#if defined(HAVE_MLOCKALL) && HAVE_DECL_MLOCKALL /** Attempt to raise the current and max rlimit to infinity for our process. * This only needs to be done once and can probably only be done when we have * not already dropped privileges.