aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-11-20 14:45:29 -0500
committerNick Mathewson <nickm@torproject.org>2009-11-20 14:45:29 -0500
commit2b1bb233b3999a82188a471100f33e9b7b1d2c8b (patch)
treee252a5b108bf2c4739256b44e273cd010bf25d77 /src/common
parent444eff62862551fd984b8173ecb174483d7dbb7b (diff)
downloadtor-2b1bb233b3999a82188a471100f33e9b7b1d2c8b.tar.gz
tor-2b1bb233b3999a82188a471100f33e9b7b1d2c8b.zip
Use the same mlockall checks with tor_set_max_memlock
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.c2
1 files changed, 1 insertions, 1 deletions
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.