summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/allocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/allocator.cpp b/tests/allocator.cpp
index e1d99d5..a2bcb48 100644
--- a/tests/allocator.cpp
+++ b/tests/allocator.cpp
@@ -67,7 +67,7 @@ namespace
VirtualProtect(rptr, aligned_size + page_size, PAGE_NOACCESS, &old_flags);
}
}
-#elif defined(__APPLE__) || defined(__linux__)
+#elif (defined(__APPLE__) || defined(__linux__)) && !((defined(__has_feature) && __has_feature(address_sanitizer)) || defined(__SANITIZE_ADDRESS__))
# include <sys/mman.h>
namespace