diff --git a/ChangeLog b/ChangeLog index 19eadab4b..e275cfe79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-17 Andrew Sveikauskas + + * Source/thr-mach.h: include objc/objc-api.h + * Source/thr-pthread.m: use pthread_yield() except for apple + 2006-03-13 Adam Fedor * Version 1.12.0 diff --git a/Source/thr-mach.h b/Source/thr-mach.h index 917f08b98..3f0eb8ae3 100644 --- a/Source/thr-mach.h +++ b/Source/thr-mach.h @@ -39,6 +39,7 @@ Boston, MA 02110-1301, USA. */ #define __thread_INCLUDE_GNU #include +#include /************************************************************************* * Universal static variables: diff --git a/Source/thr-pthread.m b/Source/thr-pthread.m index 31f9117c9..84c5cfd42 100644 --- a/Source/thr-pthread.m +++ b/Source/thr-pthread.m @@ -238,9 +238,9 @@ objc_thread_get_priority(void) void objc_thread_yield(void) { -#if 0 +#if !defined(__APPLE__) /* Not defined in darwin? */ - pthread_yield(NULL); + pthread_yield(); #else sched_yield(); #endif