From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 27472385482A; Wed, 24 Aug 2022 13:06:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27472385482A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661346375; bh=5OohcKpBpVvRvJ3HYWtGHqZABJTLQyCMTMRF1KR5jn8=; h=From:To:Subject:Date:From; b=bcfpkw5l1gmPiiDjCg56O3H7lcgtkmuy3i9EMhrcvLCiXuaHGdI4g8JJzerJzWdX0 TchjDwYhME3YJbsSGog+4nDCCnmlPv3g7BKnGanDmfroqoE2T50BK8p+nmN742SbEG BVEL1et2U3i9acIBkrP+qB1cd4GMrJRfmTY+IRDM= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/release/2.36/master] linux: Use compile_c_snippet to check linux/mount.h availability X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/release/2.36/master X-Git-Oldrev: 4dad97e2a2e510c6b53a0add29a2188714fcf4ab X-Git-Newrev: d48813227b63a0d92ea357ea0733229ed74e31ab Message-Id: <20220824130615.27472385482A@sourceware.org> Date: Wed, 24 Aug 2022 13:06:15 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d48813227b63a0d92ea357ea0733229ed74e31ab commit d48813227b63a0d92ea357ea0733229ed74e31ab Author: Adhemerval Zanella Date: Wed Aug 10 14:24:46 2022 -0300 linux: Use compile_c_snippet to check linux/mount.h availability Checked on x86_64-linux-gnu. Reviewed-by: Florian Weimer (cherry picked from commit e1226cdc6b209539a92d32d5b620ba53fd35abf3) Diff: --- sysdeps/unix/sysv/linux/tst-mount-consts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py index a62f803123..be2ef2daf1 100755 --- a/sysdeps/unix/sysv/linux/tst-mount-consts.py +++ b/sysdeps/unix/sysv/linux/tst-mount-consts.py @@ -33,6 +33,11 @@ def main(): help='C compiler (including options) to use') args = parser.parse_args() + if glibcextract.compile_c_snippet( + '#include ', + args.cc).returncode != 0: + sys.exit (77) + linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) # Constants in glibc were updated to match Linux v5.16. When glibc # constants are updated this value should be updated to match the