$NetBSD: patch-af,v 1.2 1999/11/04 15:21:58 minoura Exp $ --- os_dep.c.orig Fri Jul 9 05:01:06 1999 +++ os_dep.c Tue Oct 26 11:14:37 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 @@ -2407,7 +2420,7 @@ # if defined (DRSNX) # include # else -# if defined(OPENBSD) +# if defined(OPENBSD) || defined(NETBSD) # include # else # include @@ -2422,7 +2435,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