diff options
Diffstat (limited to 'module/zstd/lib/zstd.c')
-rw-r--r-- | module/zstd/lib/zstd.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/module/zstd/lib/zstd.c b/module/zstd/lib/zstd.c index 2766e5b74..b57a9ef40 100644 --- a/module/zstd/lib/zstd.c +++ b/module/zstd/lib/zstd.c @@ -279,12 +279,9 @@ intptr_t __msan_test_shadow(const volatile void *x, size_t size); #endif /* detects whether we are being compiled under asan */ -#if defined (__has_feature) -# if __has_feature(address_sanitizer) -# define ADDRESS_SANITIZER 1 -# endif -#elif defined(__SANITIZE_ADDRESS__) +#if defined (ZFS_ASAN_ENABLED) # define ADDRESS_SANITIZER 1 +# define ZSTD_ASAN_DONT_POISON_WORKSPACE #endif #if defined (ADDRESS_SANITIZER) |