mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Prevent use of LeakSanitizer on FreeBSD
This commit is contained in:
parent
85a0936ec6
commit
9665f63301
4 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue