[PATCH 1/9] winebus.sys: Fix the HAVE_SYS_INOTIFY_H checks.
Francois Gouget
wine at gitlab.winehq.org
Tue May 3 04:20:43 CDT 2022
From: Francois Gouget <fgouget at free.fr>
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/winebus.sys/bus_udev.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c
index 6b4bf09a773..39573162afa 100644
--- a/dlls/winebus.sys/bus_udev.c
+++ b/dlls/winebus.sys/bus_udev.c
@@ -1773,7 +1773,7 @@ NTSTATUS udev_bus_init(void *args)
goto error;
}
-#if HAVE_SYS_INOTIFY_H
+#ifdef HAVE_SYS_INOTIFY_H
if (options.disable_udevd) monitor_fd = create_inotify();
if (monitor_fd < 0) options.disable_udevd = FALSE;
#else
@@ -1798,7 +1798,7 @@ NTSTATUS udev_bus_init(void *args)
poll_count = 2;
if (!options.disable_udevd) build_initial_deviceset_udevd();
-#if HAVE_SYS_INOTIFY_H
+#ifdef HAVE_SYS_INOTIFY_H
else build_initial_deviceset_direct();
#endif
@@ -1841,7 +1841,7 @@ NTSTATUS udev_bus_wait(void *args)
if (pfd[0].revents)
{
if (udev_monitor) process_monitor_event(udev_monitor);
-#if HAVE_SYS_INOTIFY_H
+#ifdef HAVE_SYS_INOTIFY_H
else process_inotify_event(pfd[0].fd);
#endif
}
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/26
More information about the wine-devel
mailing list