aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pyfpe.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-13 10:46:04 +0200
committerGitHub <noreply@github.com>2022-01-13 09:46:04 +0100
commita6ca8eee2254762422f90cf94fbaac34f85db780 (patch)
tree6017b6edc8445b18afc5ec23c5e75a4bdb983ba5 /Python/pyfpe.c
parent1de60155d5d01be2924e72fb68dd13d4fd00acd7 (diff)
downloadcpython-a6ca8eee2254762422f90cf94fbaac34f85db780.tar.gz
cpython-a6ca8eee2254762422f90cf94fbaac34f85db780.zip
bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507)
Diffstat (limited to 'Python/pyfpe.c')
-rw-r--r--Python/pyfpe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/pyfpe.c b/Python/pyfpe.c
index 31ef5d73b70..9b1260f687a 100644
--- a/Python/pyfpe.c
+++ b/Python/pyfpe.c
@@ -3,9 +3,12 @@
* though, because they may be referenced by extensions using the stable ABI.
*/
-#include "setjmp.h"
+#ifdef HAVE_SETJMP_H
+#include <setjmp.h>
jmp_buf PyFPE_jbuf;
+#endif
+
int PyFPE_counter;
double