Prevent use of LeakSanitizer on FreeBSD

This commit is contained in:
Jon Siwek 2021-03-12 12:11:03 -08:00
parent 85a0936ec6
commit 9665f63301
4 changed files with 5 additions and 4 deletions

View file

@ -260,7 +260,8 @@ extern const char* BRO_VERSION_FUNCTION();
#endif
#endif
#if defined(ZEEK_ASAN)
// FreeBSD doesn't support LeakSanitizer
#if defined(ZEEK_ASAN) && !defined(__FreeBSD__)
#include <sanitizer/lsan_interface.h>
#define ZEEK_LSAN_CHECK(x) __lsan_do_leak_check(x)
#define ZEEK_LSAN_ENABLE(x) __lsan_enable(x)