From: Nick Mathewson Date: Fri, 20 Nov 2009 19:45:29 +0000 (-0500) Subject: Use the same mlockall checks with tor_set_max_memlock X-Git-Tag: tor-0.2.2.7-alpha~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b1bb233b3999a82188a471100f33e9b7b1d2c8b;p=thirdparty%2Ftor.git Use the same mlockall checks with tor_set_max_memlock --- 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.