Skip to content

Commit 30305d6

Browse files
authored
gh-108623: Fix compile warning in Modules/_multiprocessing/semaphore.c (#108624)
1 parent bf08131 commit 30305d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Modules/_multiprocessing/multiprocessing.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#ifndef MULTIPROCESSING_H
22
#define MULTIPROCESSING_H
33

4+
#ifndef Py_BUILD_CORE_BUILTIN
5+
# define Py_BUILD_CORE_MODULE 1
6+
#endif
7+
48
#include "Python.h"
59
#include "structmember.h"
610
#include "pythread.h"
11+
#include "pycore_signal.h" // _PyOS_IsMainThread()
712

813
/*
914
* Platform includes and definitions

0 commit comments

Comments
 (0)