summary refs log tree commit diff stats
path: root/lib/system/systhread.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/systhread.nim')
-rwxr-xr-xlib/system/systhread.nim6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/system/systhread.nim b/lib/system/systhread.nim
index c497cc961..c83062942 100755
--- a/lib/system/systhread.nim
+++ b/lib/system/systhread.nim
@@ -15,6 +15,8 @@ when not SystemInclude:
   # ugly hack: this file is then included from core/threads, so we have
   # thread support:
   const hasThreadSupport = true
+  
+  include "lib/system/ansi_c"
 
 when (defined(gcc) or defined(llvm_gcc)) and hasThreadSupport:
   proc sync_add_and_fetch(p: var int, val: int): int {.
@@ -94,7 +96,3 @@ else:
   proc ReleaseSys(L: var TSysLock) {.
     importc: "pthread_mutex_unlock", header: "<pthread.h>".}
 
-when SystemInclude:
-  var heapLock: TSysLock
-  InitSysLock(HeapLock)
-