diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2019-01-09 10:50:58 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2019-01-09 11:02:05 +0000 |
commit | 0a4c4f3e52762a953e20419f1fef1f2f62c9873b (patch) | |
tree | 079ec47dfb3312385d3c65033056631031665d54 /sway/commands/bind.c | |
parent | Merge pull request #3386 from RedSoxFan/seat-reload-wait (diff) | |
download | sway-0a4c4f3e52762a953e20419f1fef1f2f62c9873b.tar.gz sway-0a4c4f3e52762a953e20419f1fef1f2f62c9873b.tar.zst sway-0a4c4f3e52762a953e20419f1fef1f2f62c9873b.zip |
Simplify evdev includes on FreeBSD by relying on up-to-date package
evdev-proto is installed by a dependency, so some files have been missed:
In file included from ../sway/input/cursor.c:3:
/usr/local/include/libevdev-1.0/libevdev/libevdev.h:30:10: fatal error: 'linux/input.h' file not found
#include <linux/input.h>
^~~~~~~~~~~~~~~
../swaybar/i3bar.c:3:10: fatal error: 'linux/input-event-codes.h' file not found
#include <linux/input-event-codes.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r-- | sway/commands/bind.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index 7994ab2f..4fceaf8c 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c | |||
@@ -1,10 +1,6 @@ | |||
1 | #define _POSIX_C_SOURCE 200809L | 1 | #define _POSIX_C_SOURCE 200809L |
2 | #include <libevdev/libevdev.h> | 2 | #include <libevdev/libevdev.h> |
3 | #ifdef __linux__ | ||
4 | #include <linux/input-event-codes.h> | 3 | #include <linux/input-event-codes.h> |
5 | #elif __FreeBSD__ | ||
6 | #include <dev/evdev/input-event-codes.h> | ||
7 | #endif | ||
8 | #include <xkbcommon/xkbcommon.h> | 4 | #include <xkbcommon/xkbcommon.h> |
9 | #include <xkbcommon/xkbcommon-names.h> | 5 | #include <xkbcommon/xkbcommon-names.h> |
10 | #include <string.h> | 6 | #include <string.h> |