diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-27 16:11:40 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-28 17:33:20 -0400 |
commit | e19f2a8a4b3103134f06e5f8e5b59b61488c885f (patch) | |
tree | c606a90cfbd24c4ebe69e7c8c49bea9a5c9b7c18 /src/bfstd.c | |
parent | 386fc8817e637fdd52c20e4ace6cc4ea1f1186ed (diff) | |
download | bfs-e19f2a8a4b3103134f06e5f8e5b59b61488c885f.tar.xz |
prelude: Define __SANITIZE_*__
Diffstat (limited to 'src/bfstd.c')
-rw-r--r-- | src/bfstd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bfstd.c b/src/bfstd.c index a179f79..9a3562d 100644 --- a/src/bfstd.c +++ b/src/bfstd.c @@ -324,7 +324,7 @@ const char *xstrerror(int errnum) { // On FreeBSD with MemorySanitizer, duplocale() triggers // https://github.com/llvm/llvm-project/issues/65532 -#if BFS_HAS_STRERROR_L && !(__FreeBSD__ && SANITIZE_MEMORY) +#if BFS_HAS_STRERROR_L && !(__FreeBSD__ && __SANITIZE_MEMORY__) # if BFS_HAS_USELOCALE locale_t loc = uselocale((locale_t)0); # else @@ -715,14 +715,14 @@ int xstrtofflags(const char **str, unsigned long long *set, unsigned long long * } long xsysconf(int name) { -#if __FreeBSD__ && SANITIZE_MEMORY +#if __FreeBSD__ && __SANITIZE_MEMORY__ // Work around https://github.com/llvm/llvm-project/issues/88163 __msan_scoped_disable_interceptor_checks(); #endif long ret = sysconf(name); -#if __FreeBSD__ && SANITIZE_MEMORY +#if __FreeBSD__ && __SANITIZE_MEMORY__ __msan_scoped_enable_interceptor_checks(); #endif |