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.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/systhread.nim b/lib/system/systhread.nim
index 2b5057ff0..c497cc961 100755
--- a/lib/system/systhread.nim
+++ b/lib/system/systhread.nim
@@ -77,7 +77,8 @@ when defined(Windows):
 
 else:
   type
-    TSysLock {.importc: "pthread_mutex_t", header: "<sys/types.h>".} = int
+    TSysLock {.importc: "pthread_mutex_t", pure, final,
+               header: "<sys/types.h>".} = object
 
   proc InitSysLock(L: var TSysLock, attr: pointer = nil) {.
     importc: "pthread_mutex_init", header: "<pthread.h>".}