summaryrefslogtreecommitdiff
path: root/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
parent43f44160b1ddcbf7e5205c37db09b3bebe7226f9 (diff)
downloadxz-27414daadf5727e8ab942374b5ec1c8990122878.tar.gz
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 'm4')
-rw-r--r--m4/lc_cpucores.m42
-rw-r--r--m4/lc_physmem.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/m4/lc_cpucores.m4 b/m4/lc_cpucores.m4
index 2fae953..52f7c98 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;
}
]])], [
diff --git a/m4/lc_physmem.m4 b/m4/lc_physmem.m4
index 78be136..5d9581e 100644
--- a/m4/lc_physmem.m4
+++ b/m4/lc_physmem.m4
@@ -45,7 +45,7 @@ main(void)
int name[2] = { CTL_HW, HW_PHYSMEM };
unsigned long mem;
size_t mem_ptr_size = sizeof(mem);
- sysctl(name, 2, &mem, &mem_ptr_size, NULL, NULL);
+ sysctl(name, 2, &mem, &mem_ptr_size, NULL, 0);
return 0;
}
]])], [