summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-03-18 13:33:03 (GMT)
committerGitHub <noreply@github.com>2022-03-18 13:33:03 (GMT)
commita12ef81231d65da5efbef4fa1434716270a19af6 (patch)
tree0c220d844b5cac494187cff197e815874e21d71b /Modules
parent1cab44d8650ae3eece90b04fca373908205e7ee0 (diff)
downloadcpython-a12ef81231d65da5efbef4fa1434716270a19af6.zip
cpython-a12ef81231d65da5efbef4fa1434716270a19af6.tar.gz
cpython-a12ef81231d65da5efbef4fa1434716270a19af6.tar.bz2
[3.9] bpo-46968: Check for 'sys/auxv.h' in the configure script (GH-31961). (GH-31975)
(cherry picked from commit 8e3fde728f547f1d32bde8adf62b4c50bb877b9d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/faulthandler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index 764ff43..16f98ac 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -21,9 +21,9 @@
# define FAULTHANDLER_USE_ALT_STACK
#endif
-#if defined(FAULTHANDLER_USE_ALT_STACK) && defined(HAVE_LINUX_AUXVEC_H)
-# include <linux/auxvec.h>
-# include <sys/auxv.h>
+#if defined(FAULTHANDLER_USE_ALT_STACK) && defined(HAVE_LINUX_AUXVEC_H) && defined(HAVE_SYS_AUXV_H)
+# include <linux/auxvec.h> // AT_MINSIGSTKSZ
+# include <sys/auxv.h> // getauxval()
#endif
/* Allocate at maximum 100 MiB of the stack to raise the stack overflow */