Fix build failure when using clang for Android

clang for Android generates __gnu_linux__ define, but gcc for Android doesn't.  So we should add check it for Android
This commit is contained in:
Makoto Kato
2013-07-10 15:34:53 +09:00
parent c3c40e0290
commit 3b44d41156

View File

@@ -34,7 +34,7 @@
#include <ffi_common.h> #include <ffi_common.h>
#if !FFI_MMAP_EXEC_WRIT && !FFI_EXEC_TRAMPOLINE_TABLE #if !FFI_MMAP_EXEC_WRIT && !FFI_EXEC_TRAMPOLINE_TABLE
# if __gnu_linux__ # if __gnu_linux__ && !defined(__ANDROID__)
/* This macro indicates it may be forbidden to map anonymous memory /* This macro indicates it may be forbidden to map anonymous memory
with both write and execute permission. Code compiled when this with both write and execute permission. Code compiled when this
option is defined will attempt to map such pages once, but if it option is defined will attempt to map such pages once, but if it