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:
Enrico Weigelt, metux IT consult
2024-06-10 18:41:19 +02:00
parent 409e8205e8
commit fbfb16edfe

View File

@@ -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>