aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.def
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2020-11-20 21:11:22 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2020-11-20 21:11:22 +0000
commit9e071b6e5ed5a07a4ce621382904c084431f9d47 (patch)
treed7d0c78eb608880364ec5083564a4e24cee73d30 /gcc/diagnostic.def
parentf50c417a036697eccfad5a1d6ce777246c77635a (diff)
downloadgcc-9e071b6e5ed5a07a4ce621382904c084431f9d47.zip
gcc-9e071b6e5ed5a07a4ce621382904c084431f9d47.tar.gz
gcc-9e071b6e5ed5a07a4ce621382904c084431f9d47.tar.bz2
libada: Check for the presence of _SC_NPROCESSORS_ONLN
Check for the presence of _SC_NPROCESSORS_ONLN rather than using a list of OS-specific macros to decide whether to use `sysconf' like elsewhere across GCC sources, fixing a compilation error: adaint.c: In function '__gnat_number_of_cpus': adaint.c:2398:26: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function) 2398 | cores = (int) sysconf (_SC_NPROCESSORS_ONLN); | ^~~~~~~~~~~~~~~~~~~~ adaint.c:2398:26: note: each undeclared identifier is reported only once for each function it appears in at least with with VAX/NetBSD 1.6.2. gcc/ada/ * adaint.c (__gnat_number_of_cpus): Check for the presence of _SC_NPROCESSORS_ONLN rather than a list of OS-specific macros to decide whether to use `sysconf'.
Diffstat (limited to 'gcc/diagnostic.def')
0 files changed, 0 insertions, 0 deletions