From 8eb1da817e115cc4210699d899b0d85f26e9e30a Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 29 Jan 2015 02:04:35 +0000 Subject: 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 Signed-off-by: Emil Velikov --- libdrm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdrm.h b/libdrm.h index acfada5c..6c3cd594 100644 --- a/libdrm.h +++ b/libdrm.h @@ -45,7 +45,7 @@ #include -#if defined(ANDROID) +#if defined(ANDROID) && !defined(__LP64__) #include /* for EINVAL */ extern void *__mmap2(void *, size_t, int, int, int, size_t); -- cgit v1.2.3