From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by sourceware.org (Postfix) with ESMTPS id B1127385843E for ; Wed, 10 Aug 2022 17:24:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B1127385843E Received: by mail-ua1-x92c.google.com with SMTP id s18so6035420uac.10 for ; Wed, 10 Aug 2022 10:24:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc; bh=t1lrmxsswsHhWhD72chW+8wCy+y28EfSHne5fU9zPn0=; b=pybnqZzl1uCb+NeK7koxNnZZ7lu1R4N5Lr2eMWdANXkF/5u77SxUAkphVrmH23QLfM DiXVqgdqxJrvBG4Pxb5jqV4EcoM/mcMnYr6go6u+OqppTEbyHTh5Iwuv9diyydgfKw8W T26C2EK+Fxyup/HKLq6rGdxfjo9LXgzm3+xZBn7Rv9HzogdfCgyQd4RFcsze/Szdz5on zv5PF+p8aQyvYyykY4L3zvTNFb/wnxP3nmJaTgJoPRnECtVEAPB43Mvq5uT8m8lx4QYJ awVb3Mj8vyREQpqsI84UTM65bJPHjqt4eZLi2Q/1GUR2aJJYKAozYz+hcmiAQEws0efW l79Q== X-Gm-Message-State: ACgBeo2HzT/A2TfgDHbLqy2nAPqXxX8DH5OBqKp6wRjT8HegZOAxm/+f 5JSqQu76707rsf/OZ6NKeYLgneLf+NfV3Q== X-Google-Smtp-Source: AA6agR6/8NGyU2195HqfS447DoIGM//41z3dY7OrTcn/ZYGPVKz1cBdwtXtcqdIEppIDNO9DUYRAOA== X-Received: by 2002:ab0:2986:0:b0:38c:672e:9c12 with SMTP id u6-20020ab02986000000b0038c672e9c12mr9750085uap.102.1660152295899; Wed, 10 Aug 2022 10:24:55 -0700 (PDT) Received: from mandiga.. ([2804:431:c7ca:930b:405a:6d95:e89e:4020]) by smtp.gmail.com with ESMTPSA id i31-20020a0561023d1f00b00388859a325asm155722vsv.30.2022.08.10.10.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 10:24:55 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Florian Weimer Subject: [PATCH v2 4/5] linux: Use compile_c_snippet to check linux/mount.h availability Date: Wed, 10 Aug 2022 14:24:46 -0300 Message-Id: <20220810172447.1502169-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220810172447.1502169-1-adhemerval.zanella@linaro.org> References: <20220810172447.1502169-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2022 17:24:58 -0000 Checked on x86_64-linux-gnu. --- 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 -- 2.34.1