Message ID | 1391180260-23101-2-git-send-email-rafael.barbalho@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/lib/intel_gpu_tools.h b/lib/intel_gpu_tools.h index b242243..1ae1bab 100644 --- a/lib/intel_gpu_tools.h +++ b/lib/intel_gpu_tools.h @@ -35,6 +35,17 @@ #include "intel_chipset.h" #include "intel_reg.h" +#ifdef ANDROID +#ifndef HAVE_MMAP64 +extern void* __mmap2(void *, size_t, int, int, int, off_t); +static inline void *mmap64(void *addr, size_t length, int prot, int flags, + int fd, off64_t offset) +{ + return __mmap2(addr, length, prot, flags, fd, offset >> 12); +} +#endif +#endif + #define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0])) extern void *mmio;