From 33a6b2817f3e2a8cf98d162a2b40c50d259295c4 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 6 Jun 2006 01:54:42 +0000 Subject: [PATCH] 0.9.13.27: Restore buildability on OS X/PPC. --- src/runtime/gencgc.c | 2 ++ src/runtime/ppc-darwin-os.c | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/runtime/gencgc.c b/src/runtime/gencgc.c index c8c6919..9fb8e44 100644 --- a/src/runtime/gencgc.c +++ b/src/runtime/gencgc.c @@ -4043,6 +4043,7 @@ scavenge_interrupt_contexts(void) #endif +#if defined(LISP_FEATURE_SB_THREAD) static void preserve_context_registers (os_context_t *c) { @@ -4067,6 +4068,7 @@ preserve_context_registers (os_context_t *c) preserve_pointer(*ptr); } } +#endif /* Garbage collect a generation. If raise is 0 then the remains of the * generation are not raised to the next generation. */ diff --git a/src/runtime/ppc-darwin-os.c b/src/runtime/ppc-darwin-os.c index b29e447..1bdf950 100644 --- a/src/runtime/ppc-darwin-os.c +++ b/src/runtime/ppc-darwin-os.c @@ -23,6 +23,17 @@ #include #include "bsd-os.h" +#ifdef LISP_FEATURE_SB_THREAD +#error "Define threading support functions" +#else +int arch_os_thread_init(struct thread *thread) { + return 1; /* success */ +} +int arch_os_thread_cleanup(struct thread *thread) { + return 1; /* success */ +} +#endif + os_context_register_t * os_context_register_addr(os_context_t *context, int offset) { -- 1.7.10.4