mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-03 21:00:19 +01:00
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>
This commit is contained in:
parent
7cb1d6e2d6
commit
8eb1da817e
1 changed files with 1 additions and 1 deletions
2
libdrm.h
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue