diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-09-17 00:37:15 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-29 20:48:58 +0000 |
commit | cdfd5c280a174b9e126908305c250bedbec0be61 (patch) | |
tree | dee5272dc77f4d5a60a5e2609082e06f79d5fdd1 /common | |
parent | 318b5471a18e464cfcd1f7222da7853b7056f9fc (diff) | |
download | mpv-cdfd5c280a174b9e126908305c250bedbec0be61.tar.bz2 mpv-cdfd5c280a174b9e126908305c250bedbec0be61.tar.xz |
win32/pthread: define _POSIX_TIMERS to notify they are not supported
Diffstat (limited to 'common')
-rw-r--r-- | common/stats.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/stats.c b/common/stats.c index 4b4093834b..ce50bdc0f3 100644 --- a/common/stats.c +++ b/common/stats.c @@ -69,8 +69,7 @@ struct stat_entry { // Overflows only after I'm dead. static int64_t get_thread_cpu_time_ns(pthread_t thread) { -#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(_POSIX_THREAD_CPUTIME) && \ - !HAVE_WIN32_INTERNAL_PTHREADS +#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(_POSIX_THREAD_CPUTIME) clockid_t id; struct timespec tv; if (pthread_getcpuclockid(thread, &id) == 0 && |