This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/64184] error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Oct 2016 22:50:25 +0000
- Subject: [Bug other/64184] error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
- Auto-submitted: auto-generated
- References: <bug-64184-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64184
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It looks like it's used unconditionally even on trunk.
Libstdc++ has an autoconf check for it, see GLIBCXX_CHECK_SC_NPROCESSORS_ONLN
in libstdc++-v3/acinclude.m4