summaryrefslogtreecommitdiff
path: root/lib/drmtest.h
diff options
context:
space:
mode:
authorTim Gore <tim.gore@intel.com>2015-04-21 14:53:03 +0100
committerThomas Wood <thomas.wood@intel.com>2015-04-22 18:00:42 +0100
commit52888df084f51899e7e873a24f6c1aa5c66dd191 (patch)
treea15a6b3977f049a22e2a4ee91ff714cd514579b0 /lib/drmtest.h
parent5b7edb9cb010fc770f069a2fbba2782ea3ee6936 (diff)
lib/drmtest.h : fix mmap64 again
In android mmap64 was redirected to mmap2 because mmap64 was not alway available. But now mmap2 has been removed from 64 bit android builds (and mmap64 is available), so update preprocessor conditional to check for __x86_64__. Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r--lib/drmtest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 508cc83a..7d20d770 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -39,7 +39,7 @@
#include "intel_batchbuffer.h"
#ifdef ANDROID
-#ifndef HAVE_MMAP64
+#if (!(defined HAVE_MMAP64)) && (!(defined __x86_64__))
extern void* __mmap2(void *, size_t, int, int, int, off_t);
/* mmap64 is a recent addition to bionic and not available in all android builds. */