openbsd-ports/devel/boehm-gc/patches/patch-os_dep_c
todd f680842474 Thanks to marius at monkey dot org for unbreaking this port.
Thanks to Andrew Delgleish for updating this to 6.2
patches submitted upstream.
2003-10-15 12:58:11 +00:00

23 lines
581 B
Plaintext

$OpenBSD: patch-os_dep_c,v 1.4 2003/10/15 12:58:11 todd Exp $
--- os_dep.c.orig 2003-06-14 05:11:00.000000000 +1000
+++ os_dep.c 2003-10-15 13:40:09.000000000 +1000
@@ -391,6 +391,18 @@ static void *tiny_sbrk(ptrdiff_t increme
}
#endif
+#if defined(OPENBSD) && defined(__ELF__)
+ ptr_t GC_data_start;
+
+ void GC_init_openbsd_elf()
+ {
+ extern ptr_t GC_find_limit();
+ /* This may need to be environ, without the underscore, for */
+ /* some versions. */
+ GC_data_start = GC_find_limit((ptr_t)&end, FALSE);
+ }
+#endif
+
# ifdef OS2
# include <stddef.h>