$NetBSD: patch-be,v 1.2 2000/01/20 14:12:50 pooka 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 @@ -2437,7 +2450,7 @@ # if defined (DRSNX) # include # else -# if defined(OPENBSD) +# if defined(OPENBSD) || defined(NETBSD) # include # else # include @@ -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