diff --git a/src/util/threads-pthread.c b/src/util/threads-pthread.c index 82ce5c6ee8..5b8fd5b9ef 100644 --- a/src/util/threads-pthread.c +++ b/src/util/threads-pthread.c @@ -216,7 +216,7 @@ int virThreadSelfID(void) tid = syscall(SYS_gettid); return (int)tid; #else - return (int)(void *)pthread_self(); + return (int)(intptr_t)(void *)pthread_self(); #endif }