[PATCH] winebus.sys: Include dev/evdev/input.h
Gerald Pfeifer
gerald at pfeifer.com
Sun Oct 17 16:10:00 CDT 2021
Commit de7032816bd71d0edda30a78721e79b5b6af735c added the use of
BUS_BLUETOOTH which on GNU/Linux comes from linux/input.h. Also check
for dev/evdev/input.h to support other platforms such as FreeBSD.
Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
configure | 1 +
configure.ac | 1 +
dlls/winebus.sys/bus_udev.c | 4 ++++
include/config.h.in | 3 +++
4 files changed, 9 insertions(+)
diff --git a/configure b/configure
index d1edbdc684a..93bf6571d56 100755
--- a/configure
+++ b/configure
@@ -7475,6 +7475,7 @@ for ac_header in \
arpa/nameser.h \
asm/types.h \
asm/user.h \
+ dev/evdev/input.h \
dirent.h \
elf.h \
float.h \
diff --git a/configure.ac b/configure.ac
index da6ecf5a7a8..b281bb274b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -445,6 +445,7 @@ AC_CHECK_HEADERS(\
arpa/nameser.h \
asm/types.h \
asm/user.h \
+ dev/evdev/input.h \
dirent.h \
elf.h \
float.h \
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c
index b857ba25df8..10b4b4eadd6 100644
--- a/dlls/winebus.sys/bus_udev.c
+++ b/dlls/winebus.sys/bus_udev.c
@@ -59,6 +59,10 @@
# endif
#endif
+#ifdef HAVE_DEV_EVDEV_INPUT_H
+#include <dev/evdev/input.h>
+#endif
+
#include <pthread.h>
#include "ntstatus.h"
diff --git a/include/config.h.in b/include/config.h.in
index f899dc27459..9bbf400e550 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -49,6 +49,9 @@
/* Define to 1 if you have the <cups/ppd.h> header file. */
#undef HAVE_CUPS_PPD_H
+/* Define to 1 if you have the <dev/evdev/input.h> header file. */
+#undef HAVE_DEV_EVDEV_INPUT_H
+
/* Define to 1 if you have the <dirent.h> header file. */
#undef HAVE_DIRENT_H
--
2.32.0
More information about the wine-devel
mailing list