[PATCH] winebus.sys: get inotify working on FreeBSD
Damjan Jovanovic
damjan.jov at gmail.com
Sat Oct 23 03:58:01 CDT 2021
FreeBSD requires linking to the inotify library, and
including limits.h.
Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
---
dlls/winebus.sys/Makefile.in | 2 ++
dlls/winebus.sys/bus_udev.c | 1 +
2 files changed, 3 insertions(+)
-------------- next part --------------
diff --git a/dlls/winebus.sys/Makefile.in b/dlls/winebus.sys/Makefile.in
index 6fc6fc5a632..fc4a70090db 100644
--- a/dlls/winebus.sys/Makefile.in
+++ b/dlls/winebus.sys/Makefile.in
@@ -15,3 +15,5 @@ C_SRCS = \
unixlib.c
RC_SRCS = winebus.rc
+
+EXTRALIBS = $(INOTIFY_LIBS)
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c
index 8889b6a3e1f..4c00fe6ad39 100644
--- a/dlls/winebus.sys/bus_udev.c
+++ b/dlls/winebus.sys/bus_udev.c
@@ -52,6 +52,7 @@
#ifdef HAVE_SYS_INOTIFY_H
# include <sys/inotify.h>
#endif
+#include <limits.h>
#ifdef HAVE_LINUX_INPUT_H
# include <linux/input.h>
More information about the wine-devel
mailing list