mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 21:35:19 +00:00
fix pthread_attr_t size on arm64
This commit is contained in:
@@ -632,8 +632,16 @@ when ODIN_OS == .Darwin {
|
||||
|
||||
pthread_t :: distinct c.ulong
|
||||
|
||||
when ODIN_ARCH == .arm64 {
|
||||
@(private)
|
||||
__SIZEOF_PTHREAD_ATTR_T :: 64
|
||||
} else {
|
||||
@(private)
|
||||
__SIZEOF_PTHREAD_ATTR_T :: 56
|
||||
}
|
||||
|
||||
pthread_attr_t :: struct #raw_union {
|
||||
__size: [56]c.char, // NOTE: may be smaller depending on libc or arch, but never larger.
|
||||
__size: [__SIZEOF_PTHREAD_ATTR_T]c.char,
|
||||
__align: c.long,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user