@samitouri / QOSamiQemu / commits / 7276d72802

meson.build: stop checking for inotify_init()

the only place in qemu which used the check for inotify_init() was linux-user, which now assumes inotify_init() is always present. There's no need to check for this function anymore. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

Michael Tokarev committed Jan 9, 2026 at 23:48 UTC 7276d728022880ae3dab3a7efb16545ba8e32fc3
1 file changed +2 -5
meson.build
+2 -5
@@ -2675,15 +2675,12 @@ endif
2675 config_host_data.set('CONFIG_ASAN_IFACE_FIBER', have_asan_fiber)
2676
2677 inotify = not_found
2678 -have_inotify_init = cc.has_header_symbol('sys/inotify.h', 'inotify_init')
2678 have_inotify_init1 = cc.has_header_symbol('sys/inotify.h', 'inotify_init1')
2680 -if (have_inotify_init or have_inotify_init1) and not cc.has_function('inotify_init1')
2679 +if have_inotify_init1 and not cc.has_function('inotify_init1')
2680 # FreeBSD 14 and older need libinotify-kqueue wrapper
2681 inotify = cc.find_library('inotify')
2683 - have_inotify_init = have_inotify_init and inotify.found()
2684 - have_inotify_init1 = have_inotify_init1 and inotify.found()
2682 + have_inotify_init1 = inotify.found()
2683 endif
2686 -config_host_data.set('CONFIG_INOTIFY', have_inotify_init)
2684 config_host_data.set('CONFIG_INOTIFY1', have_inotify_init1)
2685
2686 # has_header_symbol