pkgsrc/lang/drscheme/patches/patch-be
groo c6f4c028c7 R4RS-compilant and nearly R5RS-compliant scheme tailored for teaching
TODO: Stop unecessary complete rebuild of mzscheme
      Fix games launch script
2000-05-22 20:26:59 +00:00

42 lines
1.1 KiB
Text

$NetBSD: patch-be,v 1.1.1.1 2000/05/22 20:26:59 groo Exp $
--- gc/os_dep.c.orig Thu Oct 21 22:06:15 1999
+++ gc/os_dep.c Thu Dec 30 22:15:23 1999
@@ -156,6 +156,19 @@
}
#endif
+#if defined(NETBSD) && defined(__ELF__)
+ ptr_t GC_data_start;
+
+ void GC_init_netbsd_elf()
+ {
+ extern ptr_t GC_find_limit();
+ extern char **environ;
+ /* This may need to be environ, without the underscore, for */
+ /* some versions. */
+ GC_data_start = GC_find_limit((ptr_t)&environ, FALSE);
+ }
+#endif
+
# ifdef OS2
# include <stddef.h>
@@ -2437,7 +2450,7 @@
# if defined (DRSNX)
# include <sys/sparc/frame.h>
# else
-# if defined(OPENBSD)
+# if defined(OPENBSD) || defined(NETBSD)
# include <frame.h>
# else
# include <sys/frame.h>
@@ -2452,7 +2465,7 @@
/* Fill in the pc and argument information for up to NFRAMES of my */
/* callers. Ignore my frame and my callers frame. */
-#ifdef OPENBSD
+#if defined(OPENBSD) || defined(NETBSD)
# define FR_SAVFP fr_fp
# define FR_SAVPC fr_pc
#else