summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/evdev.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 0bc81ff..ce21ec3 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -38,6 +38,13 @@
#include <linux/input.h>
#include <sys/types.h>
+/* Tolerate prior #include <linux/input.h> */
+#undef BUS_NONE
+#undef BUS_PCI
+#undef BUS_SBUS
+#undef BUS_PLATFORM
+#undef BUS_USB
+
#include <xorg-server.h>
#include <xf86Xinput.h>
#include <xf86_OSproc.h>