summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-04 08:50:28 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-04 08:50:28 +0100
commitf9231eb56901e7b72b41d26eebb390d048b4b296 (patch)
tree40baf3559f56831933b54bbb55b4c2766b0b9c95 /lib
parent2647653589bfb81c0c12a00aed79012201196317 (diff)
downloadNim-f9231eb56901e7b72b41d26eebb390d048b4b296.tar.gz
make 'nim doc times.nim' work on old versions of OSX again
Diffstat (limited to 'lib')
-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