mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Fix FreeBSD build errors (again)
This commit is contained in:
parent
981b2029aa
commit
b544c4202a
1 changed files with 5 additions and 5 deletions
|
@ -3038,11 +3038,11 @@ size_t I_GetFreeMem(size_t *total)
|
||||||
#ifdef FREEBSD
|
#ifdef FREEBSD
|
||||||
u_int v_free_count, v_page_size, v_page_count;
|
u_int v_free_count, v_page_size, v_page_count;
|
||||||
size_t size = sizeof(v_free_count);
|
size_t size = sizeof(v_free_count);
|
||||||
sysctlbyname("vm.stat.vm.v_free_count", &v_free_count, &size, NULL, 0);
|
sysctlbyname("vm.stats.vm.v_free_count", &v_free_count, &size, NULL, 0);
|
||||||
size_t size = sizeof(v_page_size);
|
size = sizeof(v_page_size);
|
||||||
sysctlbyname("vm.stat.vm.v_page_size", &v_page_size, &size, NULL, 0);
|
sysctlbyname("vm.stats.vm.v_page_size", &v_page_size, &size, NULL, 0);
|
||||||
size_t size = sizeof(v_page_count);
|
size = sizeof(v_page_count);
|
||||||
sysctlbyname("vm.stat.vm.v_page_count", &v_page_count, &size, NULL, 0);
|
sysctlbyname("vm.stats.vm.v_page_count", &v_page_count, &size, NULL, 0);
|
||||||
|
|
||||||
if (total)
|
if (total)
|
||||||
*total = v_page_count * v_page_size;
|
*total = v_page_count * v_page_size;
|
||||||
|
|
Loading…
Reference in a new issue