diff options
author | justdan6 <134341009+justdan6@users.noreply.github.com> | 2023-07-28 22:08:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 22:08:43 (GMT) |
commit | 11c055f5ff1a353de6d2e77f2af24aaa782878ba (patch) | |
tree | 97823095e5ce4284e54e9735c29ae71167426c43 /configure | |
parent | cf63df88d38ec3e6ebd44ed184312df9f07f9782 (diff) | |
download | cpython-11c055f5ff1a353de6d2e77f2af24aaa782878ba.zip cpython-11c055f5ff1a353de6d2e77f2af24aaa782878ba.tar.gz cpython-11c055f5ff1a353de6d2e77f2af24aaa782878ba.tar.bz2 |
gh-106881: Check for linux/limits.h before including it (#107397)
* Check for linux/limits.h before including it
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10550,6 +10550,12 @@ then : printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_limits_h" = xyes +then : + printf "%s\n" "#define HAVE_LINUX_LIMITS_H 1" >>confdefs.h + +fi ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default" if test "x$ac_cv_header_linux_memfd_h" = xyes then : |