]> git.ipfire.org Git - thirdparty/libvirt.git/commit
meson: Check for sched_get_priority_min()
authorAndrea Bolognani <abologna@redhat.com>
Tue, 27 Feb 2024 14:58:27 +0000 (15:58 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 19 Mar 2024 17:38:19 +0000 (18:38 +0100)
commit6b7c8fce5a311899c03c2e34ee91f43c7b739f69
treeccc1c6d477066c12b89fc56e4d02bc55d71c039a
parent526e7ee15af0f00347995b3b03c9a94a28ab1cd0
meson: Check for sched_get_priority_min()

virProcessSetScheduler() uses not just sched_setscheduler() but
also sched_get_priority_{min,max}(). Currently we assume that
the former being available implies that the latter are as well,
but that's not the case for at least GNU/Hurd.

Make sure all functions are actually available before
attempting to use them.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
meson.build
src/util/virprocess.c