summaryrefslogtreecommitdiff
path: root/dev-lang/nim/files/nim-1.6.14-clang16-musl-fix.patch
blob: 1bc4f8f25d55c0040d5fa0ecdf8303d7a3d71ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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: "<sys/types.h>" .} = distinct culong
+                  header: "<sys/types.h>" .} = distinct pointer
       Pthread_attr {.importc: "pthread_attr_t",
                     header: "<sys/types.h>".} = object
         abi: array[56 div sizeof(clong), clong]