Francois Gouget : winebus.sys: Fix the HAVE_SYS_INOTIFY_H checks.
Alexandre Julliard
julliard at winehq.org
Tue May 3 15:39:24 CDT 2022
Module: wine
Branch: master
Commit: 9aa1d0a1a79647a8b575f6a68473392e16a5efcb
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9aa1d0a1a79647a8b575f6a68473392e16a5efcb
Author: Francois Gouget <fgouget at free.fr>
Date: Mon May 2 19:42:19 2022 +0200
winebus.sys: Fix the HAVE_SYS_INOTIFY_H checks.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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
}
More information about the wine-cvs
mailing list