Skip to content

Commit

Permalink
pythongh-123978: Remove broken time.thread_time() on NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Sep 16, 2024
1 parent ed1a6c7 commit 86fd156
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove broken :func:`time.thread_time` on NetBSD.
3 changes: 2 additions & 1 deletion Modules/timemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,8 @@ _PyTime_GetThreadTimeWithInfo(PyTime_t *tp, _Py_clock_info_t *info)

#elif defined(HAVE_CLOCK_GETTIME) && \
defined(CLOCK_PROCESS_CPUTIME_ID) && \
!defined(__EMSCRIPTEN__) && !defined(__wasi__)
!defined(__EMSCRIPTEN__) && !defined(__wasi__) && \
!defined(__NetBSD__)
#define HAVE_THREAD_TIME

#if defined(__APPLE__) && _Py__has_attribute(availability)
Expand Down

0 comments on commit 86fd156

Please sign in to comment.