Index: lib/msan/msan_interceptors.cc =================================================================== --- lib/msan/msan_interceptors.cc +++ lib/msan/msan_interceptors.cc @@ -37,6 +37,18 @@ // ACHTUNG! No other system header includes in this file. // Ideally, we should get rid of stdarg.h as well. +#if SANITIZER_NETBSD +#define gettimeofday __gettimeofday50 +#define getrusage __getrusage50 +#define shmctl __shmctl50 +#endif + +#if SANITIZER_NETBSD +#define sigaction_symname __sigaction14 +#else +#define sigaction_symname sigaction +#endif + using namespace __msan; using __sanitizer::memory_order;