Merge branch 'meson-monotonic-macos' into 'master'

Check for more symbols before defining HAVE_CLOCK_MONOTONIC in Meson

Closes #419

See merge request dbus/dbus!352
This commit is contained in:
Simon McVittie 2022-10-06 18:54:10 +00:00
commit fdad11b74e

View file

@ -328,7 +328,9 @@ data_config.set('top_builddir', meson.project_build_root())
threads = dependency('threads')
config.set(
'HAVE_MONOTONIC_CLOCK',
cc.has_header_symbol('pthread.h', 'CLOCK_MONOTONIC', args: compile_args_c),
cc.has_header_symbol('pthread.h', 'CLOCK_MONOTONIC', args: compile_args_c)
and cc.has_header_symbol('pthread.h', 'pthread_condattr_setclock', args: compile_args_c)
and cc.has_header_symbol('time.h', 'clock_getres', args: compile_args_c),
)
glib = dependency(