https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89864
--- Comment #69 from Jürgen Reuter <juergen.reuter at desy dot de> ---
(In reply to Iain Sandoe from comment #68)
> Created attachment 46176 [details]
> revised fixincludes patch.
>
> The patch attached include the generated files, and I'd be grateful if folks
> would test it (right now I have limited access to Darwin test boxen, but it
> seems to DTRT for me) - I will post to @patches, but leave commit until it's
> confirmed that it's working.
I will test this fix tonight when I have access to enough electricity again.
It looks like this really affects things, as my try to compile LLVM failed:
$ make
[ 0%] Built target LLVMDemangle
[ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o
In file included from /usr/include/sys/sysctl.h:83,
from
/Users/reuter/local/packages/llvm-project/llvm/lib/Support/Host.cpp:1224:
/usr/include/sys/ucred.h:94:2: error: '_Atomic' does not name a type
94 | _Atomic u_long cr_ref; /* reference count */
| ^~~~~~~
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/Host.cpp.o] Error 1