summaryrefslogtreecommitdiffstats
path: root/common/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/stats.c')
-rw-r--r--common/stats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/stats.c b/common/stats.c
index ce50bdc0f3..4b4093834b 100644
--- a/common/stats.c
+++ b/common/stats.c
@@ -69,7 +69,8 @@ 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)
+#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(_POSIX_THREAD_CPUTIME) && \
+ !HAVE_WIN32_INTERNAL_PTHREADS
clockid_t id;
struct timespec tv;
if (pthread_getcpuclockid(thread, &id) == 0 &&