aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFei Jiang <fei.jiang@intel.com>2014-02-27 08:19:17 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:01:46 -0700
commit47d6391038ba17c88a9432de198585c65da6249b (patch)
tree48e3da6e2ce46030a3dfceeadb1b8733bdea3fd5
parent64c7d270ac00ecc608e2f156ca15dfd30d9d0132 (diff)
downloadlibwsbm-47d6391038ba17c88a9432de198585c65da6249b.tar.gz
libwsbm: enable 64bit support
BZ: 172915 For 64bit mmap, need directly call mmap API. Change-Id: Iff905c35d36c6db0f98d97cdf8b714e72baeca7a Signed-off-by: Fei Jiang <fei.jiang@intel.com>
-rw-r--r--src/wsbm_ttmpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wsbm_ttmpool.c b/src/wsbm_ttmpool.c
index b6b13f3..969e072 100644
--- a/src/wsbm_ttmpool.c
+++ b/src/wsbm_ttmpool.c
@@ -356,7 +356,7 @@ pool_map(struct _WsbmBufStorage *buf, unsigned mode, void **virtual)
*/
if (dBuf->virtual == NULL) {
-#ifndef ANDROID
+#if defined(__LP64__) || defined(_LP64) || defined(__LP64)
virt = mmap(0, dBuf->requestedSize,
PROT_READ | PROT_WRITE, MAP_SHARED,
buf->pool->fd, dBuf->mapHandle);