summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjustdan6 <134341009+justdan6@users.noreply.github.com>2023-07-28 22:08:43 (GMT)
committerGitHub <noreply@github.com>2023-07-28 22:08:43 (GMT)
commit11c055f5ff1a353de6d2e77f2af24aaa782878ba (patch)
tree97823095e5ce4284e54e9735c29ae71167426c43 /configure
parentcf63df88d38ec3e6ebd44ed184312df9f07f9782 (diff)
downloadcpython-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-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 18d404c..80b4a00 100755
--- a/configure
+++ b/configure
@@ -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 :