GNU/Hurd uses BSD-based interfaces, but does not (and won't) provide <sys/sysctl.h>
Details
Diff Detail
- Repository
- rCXX libc++
Event Timeline
I think I would enumerate the BSDs here (and Apple) explicitly and not depend on BSD.
So that'd be it? I don't know if libcxx supports more than free/net/open bsd and apple ?
I’m OK with the change but please don’t repeat the condition on L24.
Re-upload and I will commit.
src/thread.cpp | ||
---|---|---|
24 | I really don’t feel like it is useful to repeat the condition given the #if spans only one line. |
Doesn't __APPLE__ imply __MACH__ anyway outside of targets that are way out of scope of libc++? Since IIRC libc++ only runs on Darwin and only in usermode, which has the __APPLE__ predefined macro even for stuff like PureDarwin. XNU itself lacks a real libc++, and so do other non-usermode things (providing either simple stubs or very minimal more suited implementations).
Doesn't APPLE imply MACH anyway outside of targets that are way out of scope of libc++?
Well, possibly, it is just not directly related to my patch :)
(also it makes sense to keep it at least as documenting that it's the mach-powered apple OS that provides sys/param.h + sys/sysctl.h).
Please fix this line too.