From 82a5be463796c78f16567507d19f6b58b5d8806d Mon Sep 17 00:00:00 2001 From: Damjan Jovanovic Date: Sat, 23 Oct 2021 11:35:41 +0200 Subject: [PATCH] winebus.sys: Get inotify working on FreeBSD. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FreeBSD requires linking to the inotify library, and including limits.h. Signed-off-by: Damjan Jovanovic Signed-off-by: RĂ©mi Bernon Signed-off-by: Alexandre Julliard --- dlls/winebus.sys/Makefile.in | 2 +- dlls/winebus.sys/bus_udev.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winebus.sys/Makefile.in b/dlls/winebus.sys/Makefile.in index 6fc6fc5a632..d9ea33d267d 100644 --- a/dlls/winebus.sys/Makefile.in +++ b/dlls/winebus.sys/Makefile.in @@ -1,7 +1,7 @@ MODULE = winebus.sys UNIXLIB = winebus.so IMPORTS = ntoskrnl hidparse -EXTRALIBS = $(IOKIT_LIBS) $(UDEV_LIBS) $(PTHREAD_LIBS) +EXTRALIBS = $(IOKIT_LIBS) $(UDEV_LIBS) $(PTHREAD_LIBS) $(INOTIFY_LIBS) EXTRAINCL = $(UDEV_CFLAGS) $(SDL2_CFLAGS) EXTRADLLFLAGS = -Wl,--subsystem,native 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 #endif +#include #ifdef HAVE_LINUX_INPUT_H # include