From: Emil Velikov Date: Thu, 29 Jan 2015 02:04:35 +0000 (+0000) Subject: libdrm: fix the Android 64bit build X-Git-Tag: android-x86-4.4-r3~162 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8eb1da817e115cc4210699d899b0d85f26e9e30a;p=android-x86%2Fexternal-libdrm.git 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 --- 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);