summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/times.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim
index c910ce009..1bb23a311 100644
--- a/lib/pure/times.nim
+++ b/lib/pure/times.nim
@@ -2525,7 +2525,7 @@ when not defined(JS):
           fib.add(fib[^1] + fib[^2])
         echo "CPU time [s] ", cpuTime() - t0
         echo "Fib is [s] ", fib
-      when defined(posix):
+      when defined(posix) and not defined(osx):
         # 'clocksPerSec' is a compile-time constant, possibly a
         # rather awful one, so use clock_gettime instead
         var ts: Timespec