aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-15 09:30:27 -0400
committerGitHub <noreply@github.com>2017-10-15 09:30:27 -0400
commit67f9b7fe5bc2db01876953fd638fed307b5aa147 (patch)
treea10527340e6f24f997e5e10c3ba70a8e80b0a725 /swaybar
parentea0f1f3a7edf92537f74b70b520103bb38ff1411 (diff)
parent44e72573cbe541b8a719eec4bc22ea0856a039ef (diff)
Merge pull request #1402 from johalun/event-codes-include-fix
Fix include path to input-event-codes.h for FreeBSD.
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/bar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index f8dc3a1f..f12923a8 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -7,7 +7,11 @@
#include <sys/wait.h>
#include <signal.h>
#include <poll.h>
+#ifdef __FreeBSD__
+#include <dev/evdev/input-event-codes.h>
+#else
#include <linux/input-event-codes.h>
+#endif
#ifdef ENABLE_TRAY
#include <dbus/dbus.h>
#include "swaybar/tray/sni_watcher.h"