tlibthread: better OS X 10.5 test (Jeff Sickel) - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit ea55a42c960585a88fd31ab538b47c3aa010931c (DIR) parent 32ee64c23069d726060d710f8071ca8e9f7b310f (HTM) Author: Russ Cox <rsc@swtch.com> Date: Sat, 3 Nov 2007 16:10:39 -0400 libthread: better OS X 10.5 test (Jeff Sickel) Diffstat: M src/libthread/threadimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h t@@ -21,7 +21,7 @@ extern int swapcontext(ucontext_t*, ucontext_t*); extern void makecontext(ucontext_t*, void(*)(), int, ...); #endif -#if defined(__APPLE__) && !defined(__DARWIN_UNIX03) +#if defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 # define mcontext libthread_mcontext # define mcontext_t libthread_mcontext_t # define ucontext libthread_ucontext