openbsd-ports/devel/boehm-gc/patches/patch-mach_dep_c

13 lines
463 B
Plaintext
Raw Normal View History

$OpenBSD: patch-mach_dep_c,v 1.2 2002/10/26 13:25:26 todd Exp $
--- mach_dep.c.orig Wed Jul 31 17:12:03 2002
+++ mach_dep.c Fri Oct 25 11:53:09 2002
@@ -446,7 +446,7 @@ ptr_t cold_gc_frame;
/* the stack. Return sp. */
# ifdef SPARC
asm(" .seg \"text\"");
-# ifdef SVR4
+# if defined(SVR4) || defined(__ELF__)
asm(" .globl GC_save_regs_in_stack");
asm("GC_save_regs_in_stack:");
asm(" .type GC_save_regs_in_stack,#function");