From bd580e9d6ed2dc72139b2bef1d16e6596ffe26ac Mon Sep 17 00:00:00 2001 From: araq Date: Tue, 31 Jan 2017 15:44:11 +0100 Subject: [PATCH] another attempt to getThreadId work on Linux --- lib/system/threads.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/threads.nim b/lib/system/threads.nim index ab86baeee2..be0b91c66c 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: "".} + proc syscall(arg: int): int {.varargs, importc: "syscall", header: "".} var SYS_gettid {.importc, header: "".}: int #type Pid {.importc: "pid_t", header: "".} = distinct int