diff options
author | emersion <contact@emersion.fr> | 2018-08-16 11:02:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-16 11:02:21 +0100 |
commit | d66d33f5a2d32e437733ec894163242aa95a001e (patch) | |
tree | 4c8bde390dc39b9ad7982716b3e1f531d6102ba7 /examples/idle-inhibit.c | |
parent | 1a73baac94a18e55be3a22aab4ca8fee35225941 (diff) | |
parent | f86f1daf9a6f143d003bcba8b16a737d6510f2e5 (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.c | 4 |
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 |