diff options
author | David CARLIER <devnexen@gmail.com> | 2022-05-18 13:10:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 13:10:10 (GMT) |
commit | 9a1adf2790c156318158606ad83df9ce494f326a (patch) | |
tree | cdda30f9ff3be458d82fc7d24031a316ef68b4b7 /Include | |
parent | e0477ae371d983bec07b3dc75e6426785592f2d4 (diff) | |
download | cpython-9a1adf2790c156318158606ad83df9ce494f326a.zip cpython-9a1adf2790c156318158606ad83df9ce494f326a.tar.gz cpython-9a1adf2790c156318158606ad83df9ce494f326a.tar.bz2 |
bpo-42047: Add native thread ID for DragonFlyBSD (#22714)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pythread.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/pythread.h b/Include/pythread.h index a483290..6371443 100644 --- a/Include/pythread.h +++ b/Include/pythread.h @@ -20,7 +20,9 @@ PyAPI_FUNC(unsigned long) PyThread_start_new_thread(void (*)(void *), void *); PyAPI_FUNC(void) _Py_NO_RETURN PyThread_exit_thread(void); PyAPI_FUNC(unsigned long) PyThread_get_thread_ident(void); -#if defined(__APPLE__) || defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(_WIN32) || defined(_AIX) +#if (defined(__APPLE__) || defined(__linux__) || defined(_WIN32) \ + || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || defined(__DragonFly__) || defined(_AIX)) #define PY_HAVE_THREAD_NATIVE_ID PyAPI_FUNC(unsigned long) PyThread_get_thread_native_id(void); #endif |