aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJacob Appelbaum <jacob@appelbaum.net>2009-11-14 16:43:22 -0500
committerNick Mathewson <nickm@torproject.org>2009-11-14 16:45:14 -0500
commit6f1fe7e941b8f6d62829852059862b00beed5a6e (patch)
treec5e323633933e3f93233ab8863f18c1f4e607853 /src/common
parent22f674fcb88411d8b56a3423fb0c09bb7745529c (diff)
downloadtor-6f1fe7e941b8f6d62829852059862b00beed5a6e.tar.gz
tor-6f1fe7e941b8f6d62829852059862b00beed5a6e.zip
Fix compilation with with bionic libc.
This fixes bug 1147: bionic doesn't have an actual implementation of mlockall(); mlockall() is merely in the headers but not actually in the library. This prevents Tor compilation with the bionic libc for Android handsets.
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 9e5dca3525..96012e2e01 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -2273,7 +2273,7 @@ tor_mlockall(void)
* http://msdn.microsoft.com/en-us/library/aa366895(VS.85).aspx
*/
-#ifdef HAVE_SYS_MMAN_H
+#ifdef HAVE_MLOCKALL
ret = tor_set_max_memlock();
if (ret == 0) {
/* Perhaps we only want to log this if we're in a verbose mode? */