Fix wrong macro names in lc_cpucores.m4 and cpucores.h.
Thanks to Bert Wesarg.
This commit is contained in:
parent
0df9299e24
commit
390e69887f
|
@ -26,7 +26,7 @@ main(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
]])], [
|
]])], [
|
||||||
AC_DEFINE([HAVE_NCPU_SYSCONF], [1],
|
AC_DEFINE([HAVE_CPUCORES_SYSCONF], [1],
|
||||||
[Define to 1 if the number of available CPU cores can be
|
[Define to 1 if the number of available CPU cores can be
|
||||||
detected with sysconf(_SC_NPROCESSORS_ONLN).])
|
detected with sysconf(_SC_NPROCESSORS_ONLN).])
|
||||||
AC_MSG_RESULT([sysconf])
|
AC_MSG_RESULT([sysconf])
|
||||||
|
@ -47,7 +47,7 @@ main(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
]])], [
|
]])], [
|
||||||
AC_DEFINE([HAVE_NCPU_SYSCTL], [1],
|
AC_DEFINE([HAVE_CPUCORES_SYSCTL], [1],
|
||||||
[Define to 1 if the number of available CPU cores can be
|
[Define to 1 if the number of available CPU cores can be
|
||||||
detected with sysctl().])
|
detected with sysctl().])
|
||||||
AC_MSG_RESULT([sysctl])
|
AC_MSG_RESULT([sysctl])
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
#ifndef CPUCORES_H
|
#ifndef CPUCORES_H
|
||||||
#define CPUCORES_H
|
#define CPUCORES_H
|
||||||
|
|
||||||
#if defined(HAVE_NCPU_SYSCONF)
|
#if defined(HAVE_CPUCORES_SYSCONF)
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
|
||||||
#elif defined(HAVE_NCPU_SYSCTL)
|
#elif defined(HAVE_CPUCORES_SYSCTL)
|
||||||
# ifdef HAVE_SYS_PARAM_H
|
# ifdef HAVE_SYS_PARAM_H
|
||||||
# include <sys/param.h>
|
# include <sys/param.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue