aboutsummaryrefslogtreecommitdiff
path: root/m4/lc_cpucores.m4
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-08-29 13:39:21 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-08-29 13:39:21 +0300
commit27414daadf5727e8ab942374b5ec1c8990122878 (patch)
treef0c214fa98ef24f296e288529e2aefb456a75794 /m4/lc_cpucores.m4
parentFix x86 assembler on GCC 3. (diff)
downloadxz-27414daadf5727e8ab942374b5ec1c8990122878.tar.xz
Fix sysctl() usage.
This fixes build on *BSDs and Darwin. Thanks to Jukka Salmi for the patches. Richard Koch reported the problem too.
Diffstat (limited to '')
-rw-r--r--m4/lc_cpucores.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/lc_cpucores.m4 b/m4/lc_cpucores.m4
index 2fae953a..52f7c985 100644
--- a/m4/lc_cpucores.m4
+++ b/m4/lc_cpucores.m4
@@ -43,7 +43,7 @@ main(void)
int name[2] = { CTL_HW, HW_NCPU };
int cpus;
size_t cpus_size = sizeof(cpus);
- sysctl(name, 2, &cpus, &cpus_size, NULL, NULL);
+ sysctl(name, 2, &cpus, &cpus_size, NULL, 0);
return 0;
}
]])], [