aboutsummaryrefslogtreecommitdiff
path: root/examples/idle-inhibit.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-08-16 11:02:21 +0100
committerGitHub <noreply@github.com>2018-08-16 11:02:21 +0100
commitd66d33f5a2d32e437733ec894163242aa95a001e (patch)
tree4c8bde390dc39b9ad7982716b3e1f531d6102ba7 /examples/idle-inhibit.c
parent1a73baac94a18e55be3a22aab4ca8fee35225941 (diff)
parentf86f1daf9a6f143d003bcba8b16a737d6510f2e5 (diff)
Merge pull request #1188 from emersion/freebsd-fixes
Fix build on FreeBSD
Diffstat (limited to 'examples/idle-inhibit.c')
-rw-r--r--examples/idle-inhibit.c4
1 files changed, 4 insertions, 0 deletions
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 <linux/input-event-codes.h>
+#elif __FreeBSD__
+#include <dev/evdev/input-event-codes.h>
+#endif
/**
* Usage: idle-inhibit