summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authoraraq <rumpf_a@web.de>2017-01-31 15:44:11 +0100
committeraraq <rumpf_a@web.de>2017-01-31 15:44:11 +0100
commitbd580e9d6ed2dc72139b2bef1d16e6596ffe26ac (patch)
tree8c0ca8d42c3fcf5b492df8283a4749c637d93e23 /lib
parenteaa0eda72d5cad7e148202cac88a078efb3916af (diff)
downloadNim-bd580e9d6ed2dc72139b2bef1d16e6596ffe26ac.tar.gz
another attempt to getThreadId work on Linux
Diffstat (limited to 'lib')
-rw-r--r--lib/system/threads.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim
index ab86baeee..be0b91c66 100644
--- a/lib/system/threads.nim
+++ b/lib/system/threads.nim
@@ -195,7 +195,7 @@ else:
     importc: "pthread_setaffinity_np", header: pthreadh.}
 
   when defined(linux):
-    proc syscall(arg: int): int {.varargs, importc: "syscall", header: "<sys/syscall.h>".}
+    proc syscall(arg: int): int {.varargs, importc: "syscall", header: "<unistd.h>".}
     var SYS_gettid {.importc, header: "<sys/syscall.h>".}: int
 
     #type Pid {.importc: "pid_t", header: "<sys/types.h>".} = distinct int