mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
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 <carlos@redhat.com> Tested-by: Matheus Castanho <msc@linux.ibm.com> Reviewed-by: Matheus Castanho <msc@linux.ibm.com>
This commit is contained in:
@@ -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 <sys/pidfd.h>\n',
|
||||
|
||||
Reference in New Issue
Block a user