Skip to content

util/u_thread: Restrict u_thread_get_time_nano on macOS.

Vinson Lee requested to merge vlee/mesa:macos-no-pthread_getcpuclockid into master

macOS does not have pthread_getcpuclockid.

src/util/u_thread.h:156:4: error: implicit declaration of function 'pthread_getcpuclockid' is invalid in C99 [-Werror,-Wimplicit-function-declaration] pthread_getcpuclockid(thread, &cid); ^

Fixes: 4913215d ("util/u_thread: don't restrict u_thread_get_time_nano() to linux") Signed-off-by: Vinson Lee vlee@freedesktop.org

Merge request reports