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

@ -1 +1 @@
Subproject commit d356e4716ef22e6175fe5dd4f3c49b8c4c892214
Subproject commit 5ae0f36c8dd1c55b9a45fc2bec0db26649abfb86

@ -1 +1 @@
Subproject commit daaecd4c76317b91d625f4919f7f104e9e6d76fa
Subproject commit cc9b94083e9c4d7215e930cba20cd6db1114599a

@ -1 +1 @@
Subproject commit c6779fb4dc5a636eb75e14f6306548bbc0386767
Subproject commit 47a0d20389fd4c4611ad702ce60c324182ed36e1

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)