diff options
author | araq <rumpf_a@web.de> | 2017-01-31 15:44:11 +0100 |
---|---|---|
committer | araq <rumpf_a@web.de> | 2017-01-31 15:44:11 +0100 |
commit | bd580e9d6ed2dc72139b2bef1d16e6596ffe26ac (patch) | |
tree | 8c0ca8d42c3fcf5b492df8283a4749c637d93e23 /lib | |
parent | eaa0eda72d5cad7e148202cac88a078efb3916af (diff) | |
download | Nim-bd580e9d6ed2dc72139b2bef1d16e6596ffe26ac.tar.gz |
another attempt to getThreadId work on Linux
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/threads.nim | 2 |
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 |