mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
Musl defines this as a struct *pthread_t [1] rather than an unsigned long as glibc does [2]. Correct the import definition to use a pointer type. [1] https://git.musl-libc.org/cgit/musl/tree/include/alltypes.h.in#n53 [2] https://sourceware.org/git?p=glibc.git;a=blob;f=sysdeps/nptl/bits/pthreadtypes.h;h=bace817f0b7e0873d66f3ee495e2cb1b92c6f32b;hb=HEAD#l27
11 lines
511 B
Diff
11 lines
511 B
Diff
--- nim-2.0.8/lib/std/private/threadtypes.nim
|
|
+++ nim-patched/lib/std/private/threadtypes.nim
|
|
@@ -73,7 +73,7 @@
|
|
when (defined(linux) or defined(nintendoswitch)) and defined(amd64):
|
|
type
|
|
SysThread* {.importc: "pthread_t",
|
|
- header: "<sys/types.h>" .} = distinct culong
|
|
+ header: "<sys/types.h>" .} = pointer
|
|
Pthread_attr* {.importc: "pthread_attr_t",
|
|
header: "<sys/types.h>".} = object
|
|
abi: array[56 div sizeof(clong), clong]
|