diff --git a/src/test/func/memory/memory.cc b/src/test/func/memory/memory.cc index c6ce764..a650a7c 100644 --- a/src/test/func/memory/memory.cc +++ b/src/test/func/memory/memory.cc @@ -4,7 +4,8 @@ #include #include #include -#if (defined(__linux__) || defined(__sun)) && !defined(SNMALLOC_QEMU_WORKAROUND) +#if ((defined(__linux__) && !defined(__ANDROID__)) || defined(__sun)) && \ + !defined(SNMALLOC_QEMU_WORKAROUND) /* * We only test allocations with limited AS on linux and Solaris for now. * It should be a good representative for POSIX systems.