]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-129296: Fix `pythread.h` include paths (#129320) (#130668)
authorVictor Stinner <vstinner@python.org>
Fri, 28 Feb 2025 08:19:50 +0000 (09:19 +0100)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2025 08:19:50 +0000 (08:19 +0000)
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 <contact@zanie.dev>
Include/cpython/pythread.h

index ce4ec8f65b15ea016a86c6e2452560e3b6ecb47b..a09a9a5c464fc4fbd61494a1ab2103bfefa0e0bd 100644 (file)
@@ -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"