Try to make it more portable for BSD

This commit is contained in:
twinaphex 2020-02-16 19:37:59 +01:00
parent 95286408ed
commit 09da302b8d
2 changed files with 2 additions and 2 deletions

View File

@ -2113,7 +2113,7 @@ static uint64_t frontend_unix_get_mem_total(void)
static uint64_t frontend_unix_get_mem_free(void) static uint64_t frontend_unix_get_mem_free(void)
{ {
#ifdef ANDROID #if defined(ANDROID) || (!defined(__linux__) && !defined(__OpenBSD__))
char line[256]; char line[256];
uint64_t total = 0; uint64_t total = 0;
uint64_t freemem = 0; uint64_t freemem = 0;

View File

@ -46,7 +46,7 @@
#include "SDL.h" #include "SDL.h"
#endif #endif
#if defined(__linux__) || defined(HAVE_WAYLAND) #if defined(__linux__) || defined(__linux__) && defined(HAVE_WAYLAND)
#include <linux/input.h> #include <linux/input.h>
#include <linux/kd.h> #include <linux/kd.h>
#endif #endif