diff options
author | justdan6 <134341009+justdan6@users.noreply.github.com> | 2023-07-28 23:29:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 23:29:31 (GMT) |
commit | 80aebd54c8c562d3d318c124ec735c5bf7f81d65 (patch) | |
tree | e94acb9646354421354aec9be31ddf202c37c233 /configure | |
parent | da151fdc7ac4a6d30740e4ef18071936a136790d (diff) | |
download | cpython-80aebd54c8c562d3d318c124ec735c5bf7f81d65.zip cpython-80aebd54c8c562d3d318c124ec735c5bf7f81d65.tar.gz cpython-80aebd54c8c562d3d318c124ec735c5bf7f81d65.tar.bz2 |
[3.12] gh-106881: Check for linux/limits.h before including it (#107397) (#107414)
* Check for linux/limits.h before including it
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit 11c055f5ff1a353de6d2e77f2af24aaa782878ba)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10581,6 +10581,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 : |