diff options
author | Jacob Appelbaum <jacob@appelbaum.net> | 2009-11-14 16:43:22 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-11-14 16:45:14 -0500 |
commit | 6f1fe7e941b8f6d62829852059862b00beed5a6e (patch) | |
tree | c5e323633933e3f93233ab8863f18c1f4e607853 /src/common | |
parent | 22f674fcb88411d8b56a3423fb0c09bb7745529c (diff) | |
download | tor-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.c | 2 |
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? */ |