From 796cf42f9ba751d21612da46011af4f57d2e8721 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 23 Jul 2022 12:04:37 +0200 Subject: [PATCH] gh-90473: Check for HAVE_KILL in main.c:exit_sigint --- Modules/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/main.c b/Modules/main.c index 90f237293b8565..aa523fc58d93fb 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -649,7 +649,7 @@ exit_sigint(void) * SIG_DFL handler for SIGINT if KeyboardInterrupt went unhandled. * If we don't, a calling process such as a shell may not know * about the user's ^C. https://www.cons.org/cracauer/sigint.html */ -#if defined(HAVE_GETPID) && !defined(MS_WINDOWS) +#if defined(HAVE_GETPID) && defined(HAVE_KILL) && !defined(MS_WINDOWS) if (PyOS_setsig(SIGINT, SIG_DFL) == SIG_ERR) { perror("signal"); /* Impossible in normal environments. */ } else {