aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/u_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_thread.h b/src/util/u_thread.h
index 461d30bdd12..6fc89099fec 100644
--- a/src/util/u_thread.h
+++ b/src/util/u_thread.h
@@ -149,7 +149,7 @@ util_get_L3_for_pinned_thread(thrd_t thread, unsigned cores_per_L3)
static inline int64_t
u_thread_get_time_nano(thrd_t thread)
{
-#if defined(HAVE_PTHREAD)
+#if defined(HAVE_PTHREAD) && !defined(__APPLE__)
struct timespec ts;
clockid_t cid;