Explorar o código

Use the same mlockall checks with tor_set_max_memlock

Nick Mathewson %!s(int64=16) %!d(string=hai) anos
pai
achega
2b1bb233b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/compat.c

+ 1 - 1
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.