summaryrefslogtreecommitdiff
path: root/src/closures.c
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2017-09-27 21:51:34 -0400
committerAnthony Green <green@moxielogic.com>2017-09-27 21:51:34 -0400
commit93d8e7dd17b08ff195af3580584ccd5c2228202f (patch)
treeddf80899612adaaab9c5a4ec12a1a7a3b39a1057 /src/closures.c
parent02a5145abbae2e311d5aeeee606c5b5745a99b55 (diff)
downloadlibffi-93d8e7dd17b08ff195af3580584ccd5c2228202f.tar.gz
Fix #265
Diffstat (limited to 'src/closures.c')
-rw-r--r--src/closures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/closures.c b/src/closures.c
index f7eb464..abbba7c 100644
--- a/src/closures.c
+++ b/src/closures.c
@@ -55,7 +55,7 @@
#endif
#if FFI_MMAP_EXEC_WRIT && !defined FFI_MMAP_EXEC_SELINUX
-# ifdef __linux__
+# if defined(__linux__) && !defined(__ANDROID__)
/* When defined to 1 check for SELinux and if SELinux is active,
don't attempt PROT_EXEC|PROT_WRITE mapping at all, as that
might cause audit messages. */