]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108623: Fix compile warning in `Modules/_multiprocessing/semaphore.c` (#108624)
authorNikita Sobolev <mail@sobolevn.me>
Tue, 29 Aug 2023 11:43:11 +0000 (14:43 +0300)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 11:43:11 +0000 (13:43 +0200)
Modules/_multiprocessing/multiprocessing.h

index 47257fd5d9fb264cbd2dc5bb5e09053c6e8f901b..296e0abb29a0f5851968a16695df8118090f9958 100644 (file)
@@ -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