From dc9c7bff71cb843c6ba7b68e977d130ae8098201 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sat, 1 Aug 2020 00:21:07 +0000 Subject: devices: FreeBSD support in drm and evdev code --- common/drm.c | 5 ++++- common/evdev.c | 11 +++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/drm.c b/common/drm.c index 4b70b64..3234e81 100644 --- a/common/drm.c +++ b/common/drm.c @@ -1,7 +1,10 @@ #include -#include #include +#ifdef __linux__ +#include +#endif + #include "drm.h" // From libdrm diff --git a/common/evdev.c b/common/evdev.c index fe6922d..f3b39c6 100644 --- a/common/evdev.c +++ b/common/evdev.c @@ -1,9 +1,16 @@ -#include #include #include -#include #include +#if defined(__linux__) +#include +#include +#elif defined(__FreeBSD__) +#include +#else +#error Unsupported platform +#endif + #include "evdev.h" int evdev_revoke(int fd) { -- cgit v1.2.3