winebus.sys: Get inotify working on FreeBSD.

FreeBSD requires linking to the inotify library, and
including limits.h.

Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Damjan Jovanovic 2021-10-23 11:35:41 +02:00 committed by Alexandre Julliard
parent 30fb17bda0
commit 82a5be4637
2 changed files with 2 additions and 1 deletions

View File

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

View File

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