mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
19 lines
434 B
Diff
19 lines
434 B
Diff
diff --git a/src/pthread.c b/src/pthread.c
|
|
index 4c9c4a1..db3dda2 100644
|
|
--- a/src/pthread.c
|
|
+++ b/src/pthread.c
|
|
@@ -2127,6 +2127,13 @@ sched_yield(void)
|
|
return 0;
|
|
}
|
|
|
|
+// Legacy name of sched_yield() that libSystem has always exported
|
|
+void
|
|
+pthread_yield_np(void)
|
|
+{
|
|
+ sched_yield();
|
|
+}
|
|
+
|
|
// Libsystem knows about this symbol and exports it to libsyscall
|
|
int
|
|
pthread_current_stack_contains_np(const void *addr, size_t length)
|