From ec3786f86295b0fb769970bcb3c77b4ffffd7d48 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 9 Jul 2022 11:58:35 +0200 Subject: Various improvement and some workaround to support musl binary (for #324) --- src/libtools/threads.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libtools') diff --git a/src/libtools/threads.c b/src/libtools/threads.c index c95fd598..684c5fdc 100755 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -432,6 +432,16 @@ EXPORT int my_pthread_getattr_np(x64emu_t* emu, pthread_t thread_id, pthread_att (void)emu; return pthread_getattr_np(thread_id, getAlignedAttrWithInit(attr, 0)); } +EXPORT int my_pthread_getattr_default_np(x64emu_t* emu, pthread_attr_t* attr) +{ + (void)emu; + return pthread_getattr_default_np(getAlignedAttrWithInit(attr, 0)); +} +EXPORT int my_pthread_setattr_default_np(x64emu_t* emu, pthread_attr_t* attr) +{ + (void)emu; + return pthread_setattr_default_np(getAlignedAttr(attr)); +} #endif EXPORT int my_pthread_create(x64emu_t *emu, void* t, void* attr, void* start_routine, void* arg) -- cgit 1.4.1