From f86f1daf9a6f143d003bcba8b16a737d6510f2e5 Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 16 Aug 2018 10:54:45 +0100 Subject: Fix build on FreeBSD --- examples/idle-inhibit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/idle-inhibit.c') diff --git a/examples/idle-inhibit.c b/examples/idle-inhibit.c index 348892ab..48c812e8 100644 --- a/examples/idle-inhibit.c +++ b/examples/idle-inhibit.c @@ -8,7 +8,11 @@ #include "idle-inhibit-unstable-v1-client-protocol.h" #include "xdg-shell-client-protocol.h" +#ifdef __linux__ #include +#elif __FreeBSD__ +#include +#endif /** * Usage: idle-inhibit -- cgit v1.2.3