It was failing because of size_t being unknown. I was going to just pull
in stddef.h, but the callback using size_t is only used for Linux and
NetBSD, so limit its definition to those platforms as well.
__lsan::UnlockThreadRegistry();
}
+#if SANITIZER_LINUX || SANITIZER_NETBSD
static int LockStuffAndStopTheWorldCallback(struct dl_phdr_info *info,
size_t size, void *data) {
DoStopTheWorldParam *param = reinterpret_cast<DoStopTheWorldParam *>(data);
LockDefStuffAndStopTheWorld(param);
return 1;
}
+#endif
static void LockStuffAndStopTheWorld(StopTheWorldCallback callback,
void *argument) {