Skip to content

Commit

Permalink
Add NetBSD support in asan_malloc_linux.cc
Browse files Browse the repository at this point in the history
Summary:
Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas.

Sponsored by <The NetBSD Foundation>

Reviewers: joerg, kcc, fjricci, vitalybuka, filcab

Reviewed By: fjricci

Subscribers: llvm-commits, kubamracek, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D36376

llvm-svn: 310414
  • Loading branch information
krytarowski committed Aug 8, 2017
1 parent c5c9ba1 commit a1e4edd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler-rt/lib/asan/asan_malloc_linux.cc
Expand Up @@ -15,7 +15,8 @@
//===----------------------------------------------------------------------===//

#include "sanitizer_common/sanitizer_platform.h"
#if SANITIZER_FREEBSD || SANITIZER_FUCHSIA || SANITIZER_LINUX
#if SANITIZER_FREEBSD || SANITIZER_FUCHSIA || SANITIZER_LINUX || \
SANITIZER_NETBSD

#include "sanitizer_common/sanitizer_tls_get_addr.h"
#include "asan_allocator.h"
Expand Down Expand Up @@ -234,4 +235,5 @@ void ReplaceSystemMalloc() {
} // namespace __asan
#endif // SANITIZER_ANDROID

#endif // SANITIZER_FREEBSD || SANITIZER_FUCHSIA || SANITIZER_LINUX
#endif // SANITIZER_FREEBSD || SANITIZER_FUCHSIA || SANITIZER_LINUX \
|| SANITIZER_NETBSD

0 comments on commit a1e4edd

Please sign in to comment.