Try to make it more portable for BSD
This commit is contained in:
parent
95286408ed
commit
09da302b8d
2 changed files with 2 additions and 2 deletions
|
@ -2113,7 +2113,7 @@ static uint64_t frontend_unix_get_mem_total(void)
|
|||
|
||||
static uint64_t frontend_unix_get_mem_free(void)
|
||||
{
|
||||
#ifdef ANDROID
|
||||
#if defined(ANDROID) || (!defined(__linux__) && !defined(__OpenBSD__))
|
||||
char line[256];
|
||||
uint64_t total = 0;
|
||||
uint64_t freemem = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue