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>
main
Emil Velikov 2015-01-29 02:04:35 +00:00
parent 7cb1d6e2d6
commit 8eb1da817e
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#if defined(ANDROID) #if defined(ANDROID) && !defined(__LP64__)
#include <errno.h> /* for EINVAL */ #include <errno.h> /* for EINVAL */
extern void *__mmap2(void *, size_t, int, int, int, size_t); extern void *__mmap2(void *, size_t, int, int, int, size_t);