[LTP] [PATCH] sched_attr: Do not define for glibc >= 2.41
Petr Vorel
pvorel@suse.cz
Thu Oct 31 07:45:48 CET 2024
Hi Khem,
> +/* sched_attr is not defined in glibc < 2.41 */
> +#ifndef SCHED_ATTR_SIZE_VER0
Thank you for the fix.
This is faster than traditional AC_CHECK_MEMBERS(struct sched_attr) check,
that's why I merged it. I suppose once musl adds the struct it also adds
SCHED_ATTR_SIZE_VER0. If not we will need to use AC_CHECK_MEMBERS check.
Bionic uses kernel headers anyway, thus it will work.
Kind regards,
Petr
More information about the ltp
mailing list