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
parent
7cb1d6e2d6
commit
8eb1da817e
2
libdrm.h
2
libdrm.h
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue