Add private mmap/munmap wrappers

Graphics / Mesa 3D Graphics Library / libdrm - Emil Velikov [gmail.com] - 28 September 2014 11:09 UTC

Unlike Linux, Android (bionic) has separate functions - mmap & mmap64. Add a local wrapper (inspired by gallium) that will be used throughout libdrm to combat this bionic feature.

v2:
- Drop the undefined unlikely macro.
- Use macro for munmap under Android.
- Wrap long lines.

4c2766b Add private mmap/munmap wrappers
libdrm.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)

Upstream: cgit.freedesktop.org


  • Share