diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-11-09 20:02:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 20:02:30 (GMT) |
commit | 0802fd6c8ee0cacb3ab555dd86e235a5dfab7618 (patch) | |
tree | ad3f9df8c4fe7cfc83246b7d3040d2876d0553a5 /Include | |
parent | 0c61d028be93c52726972d8d96393cc0cedb1086 (diff) | |
download | cpython-0802fd6c8ee0cacb3ab555dd86e235a5dfab7618.zip cpython-0802fd6c8ee0cacb3ab555dd86e235a5dfab7618.tar.gz cpython-0802fd6c8ee0cacb3ab555dd86e235a5dfab7618.tar.bz2 |
gh-81925: Implement native thread ids for kFreeBSD (#111761)
---------
Co-authored-by: Antoine Pitrou <antoine@python.org>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pythread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/pythread.h b/Include/pythread.h index 0784f6b..a3216c5 100644 --- a/Include/pythread.h +++ b/Include/pythread.h @@ -21,7 +21,8 @@ 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(_WIN32) \ - || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ + || defined(__OpenBSD__) || defined(__NetBSD__) \ || defined(__DragonFly__) || defined(_AIX)) #define PY_HAVE_THREAD_NATIVE_ID PyAPI_FUNC(unsigned long) PyThread_get_thread_native_id(void); |