From 09da302b8dba97094427575943d818e5970632e0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 16 Feb 2020 19:37:59 +0100 Subject: [PATCH] Try to make it more portable for BSD --- frontend/drivers/platform_unix.c | 2 +- input/input_keymaps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/drivers/platform_unix.c b/frontend/drivers/platform_unix.c index 4acd86199a..07321303e5 100644 --- a/frontend/drivers/platform_unix.c +++ b/frontend/drivers/platform_unix.c @@ -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; diff --git a/input/input_keymaps.c b/input/input_keymaps.c index 1434b5742d..99f428b67a 100644 --- a/input/input_keymaps.c +++ b/input/input_keymaps.c @@ -46,7 +46,7 @@ #include "SDL.h" #endif -#if defined(__linux__) || defined(HAVE_WAYLAND) +#if defined(__linux__) || defined(__linux__) && defined(HAVE_WAYLAND) #include #include #endif