aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-01-28 20:04:35 -0600
committerEmil Velikov2015-02-23 03:23:03 -0600
commit8eb1da817e115cc4210699d899b0d85f26e9e30a (patch)
treebfa91042fac1b33e9086a03b3d447dd59058877d /libdrm.h
parent7cb1d6e2d6c63e3bc4b275ff073152b550ba5b0f (diff)
downloadexternal-libdrm-8eb1da817e115cc4210699d899b0d85f26e9e30a.tar.gz
external-libdrm-8eb1da817e115cc4210699d899b0d85f26e9e30a.tar.xz
external-libdrm-8eb1da817e115cc4210699d899b0d85f26e9e30a.zip
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>
Diffstat (limited to 'libdrm.h')
-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 @@
45 45
46#include <sys/mman.h> 46#include <sys/mman.h>
47 47
48#if defined(ANDROID) 48#if defined(ANDROID) && !defined(__LP64__)
49#include <errno.h> /* for EINVAL */ 49#include <errno.h> /* for EINVAL */
50 50
51extern void *__mmap2(void *, size_t, int, int, int, size_t); 51extern void *__mmap2(void *, size_t, int, int, int, size_t);