intel-gpu-tools: fix problem with redefinition of mmap64
authortgore <tim.gore@intel.com>
Fri, 28 Mar 2014 12:54:58 +0000 (12:54 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 28 Mar 2014 16:50:41 +0000 (17:50 +0100)
commita96c6340768772590cf548ed8b81a10877fc7b43
treeb971522f1a304bf592a4a749ee8d865c80320851
parent798fca377a0e26cffb40e5a97230baaac4b12733
intel-gpu-tools: fix problem with redefinition of mmap64

In android builds there is no reliable way to determine if mmap64 is defined
or not, and this sometimes leads to a compile error due to its re-defnition.
So this commit avoids its use altogether in intel-gpu-tools for Android builds,
unless the HAVE_MMAP64 macro is defined.

Signed-off-by: Tim Gore <tim.gore@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/drmtest.h