From 30305d6d01e3952f409d352a794e7a367b8c4b8b Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Tue, 29 Aug 2023 14:43:11 +0300 Subject: [PATCH] gh-108623: Fix compile warning in `Modules/_multiprocessing/semaphore.c` (#108624) --- Modules/_multiprocessing/multiprocessing.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/_multiprocessing/multiprocessing.h b/Modules/_multiprocessing/multiprocessing.h index 47257fd5d9fb26..296e0abb29a0f5 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