Bug: https://bugs.gentoo.org/894410 Refer: https://github.com/nim-lang/Nim/issues/20886#issuecomment-1511708198 --- a/lib/system/threadlocalstorage.nim +++ b/lib/system/threadlocalstorage.nim @@ -129,7 +129,7 @@ else: when (defined(linux) or defined(nintendoswitch)) and defined(amd64): type SysThread* {.importc: "pthread_t", - header: "" .} = distinct culong + header: "" .} = distinct pointer Pthread_attr {.importc: "pthread_attr_t", header: "".} = object abi: array[56 div sizeof(clong), clong]