giomodule: Adapt to the GFileMintor backend selection changes

Instead of relying on some headers/functions presence, the buildsystem now
tells us what backend we're using.
This commit is contained in:
Gleb Popov 2024-07-24 15:57:46 +03:00
parent dae3b8bd15
commit 7460faf861

View File

@ -1340,10 +1340,10 @@ _g_io_modules_ensure_loaded (void)
g_type_ensure (g_memory_settings_backend_get_type ());
g_type_ensure (g_keyfile_settings_backend_get_type ());
g_type_ensure (g_power_profile_monitor_dbus_get_type ());
#if defined(HAVE_INOTIFY_INIT1)
#if defined(FILE_MONITOR_BACKEND_INOTIFY) || defined(FILE_MONITOR_BACKEND_LIBINOTIFY_KQUEUE)
g_type_ensure (g_inotify_file_monitor_get_type ());
#endif
#if defined(HAVE_KQUEUE)
#if defined(FILE_MONITOR_BACKEND_KQUEUE)
g_type_ensure (g_kqueue_file_monitor_get_type ());
#endif
#ifdef G_OS_WIN32