Index: lib/sanitizer_common/sanitizer_platform_limits_posix.cc =================================================================== --- lib/sanitizer_common/sanitizer_platform_limits_posix.cc +++ lib/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -14,6 +14,12 @@ #include "sanitizer_platform.h" +#if SANITIZER_FREEBSD +#define _WANT_RTENTRY +#include +#include +#endif + #if SANITIZER_LINUX || SANITIZER_FREEBSD || SANITIZER_MAC #include