mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
tolerate including linux/input.h
On some platforms (eg. FreeBSD) we're running into a name clash between xf86str.h and linux/input.h. Since we don't actually need those symbols here, an easy workaround is #undef'ing them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-evdev/-/merge_requests/6>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user