We should backport https://github.com/llvm/llvm-project/pull/86843 because it fixes interactions with the `__need_` macros that were added in clang in LLVM 18. /cherry-pick 2950283dddab03c183c1be2d7de9d4999cc86131