[asan] Fix Darwin runtimes compilation
authorShoaib Meenai <smeenai@fb.com>
Sat, 1 Apr 2023 09:22:17 +0000 (02:22 -0700)
committerShoaib Meenai <smeenai@fb.com>
Sat, 1 Apr 2023 09:22:17 +0000 (02:22 -0700)
commit5d4f644b33006fe4e97239cc04e2a010239981e6
tree1103b5538203103b7b386ae2c01c297c718c46d0
parent466d554dcab39c3d42fe0c5b588b795e0e4b9d0d
[asan] Fix Darwin runtimes compilation

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.
compiler-rt/lib/asan/asan_memory_profile.cpp