summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-01-29 02:04:35 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2015-02-23 09:23:03 +0000
commit8eb1da817e115cc4210699d899b0d85f26e9e30a (patch)
treebfa91042fac1b33e9086a03b3d447dd59058877d
parent7cb1d6e2d6c63e3bc4b275ff073152b550ba5b0f (diff)
libdrm: fix the Android 64bit build
With 64bit bionic mmap now handles 64bit offset, thus we no longer need the __mmap2 trick. Fix from Chih-Wei Huang, over at the google forums. Cc: Chih-Wei Huang <cwhuang@android-x86.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--libdrm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm.h b/libdrm.h
index acfada5c..6c3cd594 100644
--- a/libdrm.h
+++ b/libdrm.h
@@ -45,7 +45,7 @@
#include <sys/mman.h>
-#if defined(ANDROID)
+#if defined(ANDROID) && !defined(__LP64__)
#include <errno.h> /* for EINVAL */
extern void *__mmap2(void *, size_t, int, int, int, size_t);