From fbfb16edfe886f9ff2e6962c306645442f31d867 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 10 Jun 2024 18:41:19 +0200 Subject: 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 Part-of: --- src/evdev.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 #include +/* Tolerate prior #include */ +#undef BUS_NONE +#undef BUS_PCI +#undef BUS_SBUS +#undef BUS_PLATFORM +#undef BUS_USB + #include #include #include -- cgit v1.2.3