mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Fix some warnings
This commit is contained in:
parent
315d9c308b
commit
58140e1d3a
10 changed files with 34 additions and 25 deletions
|
|
@ -622,12 +622,12 @@ namespace utils
|
|||
}
|
||||
#else
|
||||
int vm_overcommit = 0;
|
||||
auto vm_sz = sizeof(int);
|
||||
|
||||
#if defined(__NetBSD__) || defined(__APPLE__)
|
||||
// Always ON
|
||||
vm_overcommit = 0;
|
||||
#elif defined(__FreeBSD__)
|
||||
auto vm_sz = sizeof(int);
|
||||
int mib[2]{CTL_VM, VM_OVERCOMMIT};
|
||||
if (::sysctl(mib, 2, &vm_overcommit, &vm_sz, NULL, 0) != 0)
|
||||
vm_overcommit = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue