summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-27 20:56:12 (GMT)
committerGitHub <noreply@github.com>2023-10-27 20:56:12 (GMT)
commit77bb0d5f5047223e5d8f855ee21442ea9505834e (patch)
tree107f9784ff9745af5ded7d05d6125ff369ac652a /Modules
parent8a158a753c48d166ebceae0687e88ae0c0725c02 (diff)
downloadcpython-77bb0d5f5047223e5d8f855ee21442ea9505834e.zip
cpython-77bb0d5f5047223e5d8f855ee21442ea9505834e.tar.gz
cpython-77bb0d5f5047223e5d8f855ee21442ea9505834e.tar.bz2
gh-108765: Include explicitly <unistd.h> in signalmodule.c (#111402)
unistd.h is needed by alarm() and pause() functions.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/signalmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 2932d94..f3ba091 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -21,6 +21,9 @@
# include "socketmodule.h" // SOCKET_T
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h> // alarm()
+#endif
#ifdef MS_WINDOWS
# ifdef HAVE_PROCESS_H
# include <process.h>