From 6811b32e8abff8b04ab58777d5983c9060fa279a Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Fri, 17 May 2019 22:29:22 +0200 Subject: [PATCH] macOS build fix --- src/include/final/fconfig.h | 4 +++- src/include/final/fsystemimpl.h | 14 ++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/include/final/fconfig.h b/src/include/final/fconfig.h index 1c5275ff..a1ab15de 100644 --- a/src/include/final/fconfig.h +++ b/src/include/final/fconfig.h @@ -50,7 +50,9 @@ #endif /* Define to 1 if GPM mouse is enabled */ -/* #undef HAVE_LIBGPM */ +#ifndef F_HAVE_LIBGPM +#define F_HAVE_LIBGPM 1 +#endif /* Define to 1 if you have the header file. */ #ifndef F_HAVE_LINUX_FB_H diff --git a/src/include/final/fsystemimpl.h b/src/include/final/fsystemimpl.h index f2e330c2..6a1b8592 100644 --- a/src/include/final/fsystemimpl.h +++ b/src/include/final/fsystemimpl.h @@ -35,13 +35,19 @@ #error "Only can be included directly." #endif +#if defined(__linux__) + #if defined(__x86_64__) || defined(__i386) || defined(__arm__) + #include // is deprecated + #endif // defined(__x86_64__) || defined(__i386) || defined(__arm__) +#endif // defined(__linux__) + +#include +#include +#include + #include #include #include -#include -#include -#include -#include #include "final/fc.h" #include "final/fsystem.h"