diff options
author | Fabian Keller <bluenote10@users.noreply.github.com> | 2017-01-08 17:53:43 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-01-08 17:53:43 +0100 |
commit | 5f6f444d55dbbfd23a437976edbd9b690642942e (patch) | |
tree | 6d4d9e1949cfabab4a3561fbef70e720c6d176b3 /lib/system/timers.nim | |
parent | 06740d674b631d0724f57a427652949029fc83e1 (diff) | |
download | Nim-5f6f444d55dbbfd23a437976edbd9b690642942e.tar.gz |
naive work-around for time redefinition (#5193)
Diffstat (limited to 'lib/system/timers.nim')
-rw-r--r-- | lib/system/timers.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/system/timers.nim b/lib/system/timers.nim index 129a7d092..f2ebad2c1 100644 --- a/lib/system/timers.nim +++ b/lib/system/timers.nim @@ -78,10 +78,11 @@ elif defined(posixRealtime): else: # fallback Posix implementation: - when defined(linux): - type Time = clong - else: - type Time = int + when not declared(Time): + when defined(linux): + type Time = clong + else: + type Time = int type Timeval {.importc: "struct timeval", header: "<sys/select.h>", |