From 01422a503410d2969744ceffde477c176671637c Mon Sep 17 00:00:00 2001 From: jjgarcia Date: Wed, 3 Nov 2004 13:11:54 +0000 Subject: [PATCH] Conditionally define out code that is only used for a thread support under Darwin. --- src/gc/os_dep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gc/os_dep.c b/src/gc/os_dep.c index 21d05635a..ad2b07dca 100644 --- a/src/gc/os_dep.c +++ b/src/gc/os_dep.c @@ -3505,8 +3505,10 @@ static void *GC_mprotect_thread(void *arg) { mach_msg_id_t id; +#if defined(THREADS) GC_darwin_register_mach_handler_thread(mach_thread_self()); - +#endif + for(;;) { r = mach_msg( &msg.head,