freebsd-ports/x11-drivers/xf86-input-evdev/files/patch-src_evdev.h

20 lines
410 B
C
Raw Normal View History

--- src/evdev.h.orig 2015-03-27 01:35:50 UTC
+++ src/evdev.h
@@ -36,7 +36,15 @@
#define EVDEV_H
#include <linux/input.h>
-#include <linux/types.h>
+#include <sys/types.h>
+
+/* XXX Copied from <xf86str.h> for linux */
+/* Tolerate prior #include <linux/input.h> */
+#undef BUS_NONE
+#undef BUS_PCI
+#undef BUS_SBUS
+#undef BUS_PLATFORM
+#undef BUS_last
#include <xorg-server.h>
#include <xf86Xinput.h>