]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: add fallback to be usable on kernels without sched_{get,set}attr
authorKarel Zak <kzak@redhat.com>
Mon, 11 Jul 2016 13:33:46 +0000 (15:33 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Jul 2016 13:33:46 +0000 (15:33 +0200)
commit6f27e449a9cbb96c4731207469aea7cbd8d0a5c4
tree9c1d04f330d72e43bafb9192f90485e1491d49f7
parent2cad2b32ff8e807e282cd7a5a8351b79a1b288c8
chrt: add fallback to be usable on kernels without sched_{get,set}attr

We have fallback for compilation with/without proper glibc and kernel
headers, but it's not enough, because people can switch between
kernels with and without the syscalls. (For example RT kernels for
RHEL/CentOS).

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1353340
Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/chrt.c