public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] linux: Set tst-pidfd-consts unsupported for kernels headers older than 5.10
@ 2022-06-02 19:00 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2022-06-02 19:00 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7d3e91ba194cc4b5fe1c9017f3bd77533c123b97

commit 7d3e91ba194cc4b5fe1c9017f3bd77533c123b97
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Jun 2 08:50:58 2022 -0300

    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>

Diff:
---
 sysdeps/unix/sysv/linux/tst-pidfd-consts.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py
index 75df0ebed5..90cbb9be64 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 <sys/pidfd.h>\n',


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-02 19:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02 19:00 [glibc] linux: Set tst-pidfd-consts unsupported for kernels headers older than 5.10 Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).