diff options
author | Christian Heimes <christian@python.org> | 2022-03-15 20:55:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 20:55:35 (GMT) |
commit | a4674f0194067a801f6c6bdb4fc6448e3a40e069 (patch) | |
tree | fbcfcdd74d26d7d8e83cfe2feffe4a7e01b310d7 /Modules | |
parent | af0a50de4b77dc774fcfdf5468ec320b08bfb53b (diff) | |
download | cpython-a4674f0194067a801f6c6bdb4fc6448e3a40e069.zip cpython-a4674f0194067a801f6c6bdb4fc6448e3a40e069.tar.gz cpython-a4674f0194067a801f6c6bdb4fc6448e3a40e069.tar.bz2 |
bpo-40280: Detect presence of time.tzset and thread_time clock (GH-31898)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/timemodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 5b2d9b7..7475ef3 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -1479,7 +1479,9 @@ _PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info) return 0; } -#elif defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_PROCESS_CPUTIME_ID) +#elif defined(HAVE_CLOCK_GETTIME) && \ + defined(CLOCK_PROCESS_CPUTIME_ID) && \ + !defined(__EMSCRIPTEN__) #define HAVE_THREAD_TIME #if defined(__APPLE__) && defined(__has_attribute) && __has_attribute(availability) |