summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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