From 7e12e37df900e2264a45d65574cda30b9faeedeb Mon Sep 17 00:00:00 2001 From: Laytan Date: Mon, 28 Oct 2024 19:45:31 +0100 Subject: fix test --- core/sys/posix/pthread.odin | 6 +++--- core/sys/unix/unix.odin | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'core/sys') diff --git a/core/sys/posix/pthread.odin b/core/sys/posix/pthread.odin index 8bad71f57..9391a6359 100644 --- a/core/sys/posix/pthread.odin +++ b/core/sys/posix/pthread.odin @@ -442,17 +442,17 @@ when ODIN_OS == .Darwin { pthread_t :: distinct u64 - pthread_attr_t :: struct #align(16) { + pthread_attr_t :: struct #align(8) { _: [8]byte, } pthread_key_t :: distinct c.int - pthread_mutex_t :: struct #align(16) { + pthread_mutex_t :: struct #align(8) { _: [8]byte, } - pthread_cond_t :: struct #align(16) { + pthread_cond_t :: struct #align(8) { _: [8]byte, } diff --git a/core/sys/unix/unix.odin b/core/sys/unix/unix.odin index 0291d0d4a..e9f58e554 100644 --- a/core/sys/unix/unix.odin +++ b/core/sys/unix/unix.odin @@ -1,5 +1,8 @@ package unix -import "core:sys/posix" +import "core:c" -timespec :: posix.timespec +timespec :: struct { + secs: i64, + nsecs: c.long, +} -- cgit v1.2.3