diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-08-10 14:24:46 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-08-12 09:15:23 -0300 |
commit | e1226cdc6b209539a92d32d5b620ba53fd35abf3 (patch) | |
tree | c4e389a7daf4519dd9633dd2c72512d84057fc56 /sysdeps/unix/sysv/linux/tst-mount-consts.py | |
parent | c68b6044bc7945716431f1adc091b17c39b80a06 (diff) | |
download | glibc-e1226cdc6b209539a92d32d5b620ba53fd35abf3.zip glibc-e1226cdc6b209539a92d32d5b620ba53fd35abf3.tar.gz glibc-e1226cdc6b209539a92d32d5b620ba53fd35abf3.tar.bz2 |
linux: Use compile_c_snippet to check linux/mount.h availability
Checked on x86_64-linux-gnu.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-mount-consts.py')
-rwxr-xr-x | sysdeps/unix/sysv/linux/tst-mount-consts.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py index 4fb3563..c6307cb 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 <linux/mount.h>', + 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 |