From: Victor Stinner Date: Fri, 28 Feb 2025 08:19:50 +0000 (+0100) Subject: [3.12] gh-129296: Fix `pythread.h` include paths (#129320) (#130668) X-Git-Tag: v3.12.10~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=107e08dfb18c7d752f8452dcc659f0225b1a25fa;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-129296: Fix `pythread.h` include paths (#129320) (#130668) gh-129296: Fix `pythread.h` include paths (#129320) Use relative includes in Include/cpython/pythread.h for pthread_stubs.h. (cherry picked from commit 3a974e39d54902699f360bc4db2fd351a6baf3ef) Co-authored-by: Zanie Blue --- diff --git a/Include/cpython/pythread.h b/Include/cpython/pythread.h index ce4ec8f65b15..a09a9a5c464f 100644 --- a/Include/cpython/pythread.h +++ b/Include/cpython/pythread.h @@ -21,7 +21,7 @@ PyAPI_FUNC(int) _PyThread_at_fork_reinit(PyThread_type_lock *lock); */ # define NATIVE_TSS_KEY_T unsigned long #elif defined(HAVE_PTHREAD_STUBS) -# include "cpython/pthread_stubs.h" +# include "pthread_stubs.h" # define NATIVE_TSS_KEY_T pthread_key_t #else # error "Require native threads. See https://bugs.python.org/issue31370"