From 9332557bb01efee6793c669a87a565bdc73ac59f Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Wed, 24 Nov 2021 12:12:47 +0000 Subject: [PATCH] memory unit test android build fix. (#427) --- src/test/func/memory/memory.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.