From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 9775F3858C56; Fri, 12 Aug 2022 12:52:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9775F3858C56 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] 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/master X-Git-Oldrev: c68b6044bc7945716431f1adc091b17c39b80a06 X-Git-Newrev: e1226cdc6b209539a92d32d5b620ba53fd35abf3 Message-Id: <20220812125244.9775F3858C56@sourceware.org> Date: Fri, 12 Aug 2022 12:52:44 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2022 12:52:44 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e1226cdc6b209539a92d32d5b620ba53fd35abf3 commit e1226cdc6b209539a92d32d5b620ba53fd35abf3 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 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 4fb356310b..c6307cb5c2 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.19. When glibc # constants are updated this value should be updated to match the