diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-08-29 13:39:21 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-08-29 13:39:21 +0300 |
commit | 27414daadf5727e8ab942374b5ec1c8990122878 (patch) | |
tree | f0c214fa98ef24f296e288529e2aefb456a75794 /m4/lc_physmem.m4 | |
parent | Fix x86 assembler on GCC 3. (diff) | |
download | xz-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 'm4/lc_physmem.m4')
-rw-r--r-- | m4/lc_physmem.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/lc_physmem.m4 b/m4/lc_physmem.m4 index 78be1362..5d9581e1 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; } ]])], [ |