From: Adhemerval Zanella Date: Thu, 2 Jun 2022 11:50:58 +0000 (-0300) Subject: linux: Set tst-pidfd-consts unsupported for kernels headers older than 5.10 X-Git-Tag: glibc-2.36~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d3e91ba194cc4b5fe1c9017f3bd77533c123b97;p=thirdparty%2Fglibc.git linux: Set tst-pidfd-consts unsupported for kernels headers older than 5.10 Instead of fail trying to build the compare source file. Reviewed-by: Carlos O'Donell Tested-by: Matheus Castanho Reviewed-by: Matheus Castanho --- diff --git a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py index 75df0ebed53..90cbb9be642 100644 --- a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py +++ b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py @@ -34,6 +34,9 @@ def main(): args = parser.parse_args() linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) + # Linux started to provide pidfd.h with 5.10. + if linux_version_headers < (5, 10): + sys.exit (77) linux_version_glibc = (5, 18) sys.exit(glibcextract.compare_macro_consts( '#include \n',