]> granicus.if.org Git - xz/commitdiff
Fix wrong macro names in lc_cpucores.m4 and cpucores.h.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 18 Mar 2009 14:51:41 +0000 (16:51 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 18 Mar 2009 14:51:41 +0000 (16:51 +0200)
Thanks to Bert Wesarg.

m4/lc_cpucores.m4
src/common/cpucores.h

index 5e4e02d7b3faff47a1b0a79767a2a499e9158fe2..2fae953ad47fb29f512c07adb1e474fe94e644b1 100644 (file)
@@ -26,7 +26,7 @@ main(void)
        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
                detected with sysconf(_SC_NPROCESSORS_ONLN).])
        AC_MSG_RESULT([sysconf])
@@ -47,7 +47,7 @@ main(void)
        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
                detected with sysctl().])
        AC_MSG_RESULT([sysctl])
index 7e1a1438a239f51df9e0758ca65d37975738b26f..1066a8e99836e9580216e135dd5aab71b7985cb8 100644 (file)
 #ifndef CPUCORES_H
 #define CPUCORES_H
 
-#if defined(HAVE_NCPU_SYSCONF)
+#if defined(HAVE_CPUCORES_SYSCONF)
 #      include <unistd.h>
 
-#elif defined(HAVE_NCPU_SYSCTL)
+#elif defined(HAVE_CPUCORES_SYSCTL)
 #      ifdef HAVE_SYS_PARAM_H
 #              include <sys/param.h>
 #      endif