Skip to contentSkip to conversation

lib/drmtest.h : fix mmap64 again

PATCH New [email protected] 1 participant 1 message Apr 21, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/drmtest.h : fix mmap64 again

From: Tim Gore <[email protected]>

In android mmap64 was redirected to mmap2 because mmap64 was not alway available. But now mmap2 has been removed from 64 bit android builds (and mmap64 is available), so update preprocessor conditional to check for __x86_64__.

---
 lib/drmtest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/drmtest.h +1 -1
index 508cc83..7d20d77 100644
@@ -39,7 +39,7 @@
 #include "intel_batchbuffer.h"
 
 #ifdef ANDROID
-#ifndef HAVE_MMAP64
+#if (!(defined HAVE_MMAP64)) && (!(defined __x86_64__))
 extern void*  __mmap2(void *, size_t, int, int, int, off_t);
 
 /* mmap64 is a recent addition to bionic and not available in all android builds. */
Signature · 6 lines
2.3.0

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx