summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-08-29 11:43:11 (GMT)
committerGitHub <noreply@github.com>2023-08-29 11:43:11 (GMT)
commit30305d6d01e3952f409d352a794e7a367b8c4b8b (patch)
treed109ae1c2cee13711bc5356a018b4300954b9b45
parentbf08131e0ae3a2e59a1428c648f433da6921c561 (diff)
downloadcpython-30305d6d01e3952f409d352a794e7a367b8c4b8b.zip
cpython-30305d6d01e3952f409d352a794e7a367b8c4b8b.tar.gz
cpython-30305d6d01e3952f409d352a794e7a367b8c4b8b.tar.bz2
gh-108623: Fix compile warning in `Modules/_multiprocessing/semaphore.c` (#108624)
-rw-r--r--Modules/_multiprocessing/multiprocessing.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.h b/Modules/_multiprocessing/multiprocessing.h
index 47257fd..296e0ab 100644
--- a/Modules/_multiprocessing/multiprocessing.h
+++ b/Modules/_multiprocessing/multiprocessing.h
@@ -1,9 +1,14 @@
#ifndef MULTIPROCESSING_H
#define MULTIPROCESSING_H
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "Python.h"
#include "structmember.h"
#include "pythread.h"
+#include "pycore_signal.h" // _PyOS_IsMainThread()
/*
* Platform includes and definitions