$NetBSD: patch-ad,v 1.3 2004/11/28 15:15:30 wiz Exp $

--- misc/GC.SH.orig	Sat Feb 12 04:14:52 2000
+++ misc/GC.SH	Mon Feb 21 13:24:28 2000
@@ -48,6 +48,20 @@
 elif [ `uname` = AIX ]
  then
   gc=aix.c
+elif [ `uname` = NetBSD ]
+ then
+  arch=`sysctl -n hw.machine_arch`
+  if [ ${arch} = i386 ]; then
+   gc=freebsd.c
+  elif [ ${arch} = alpha ]; then
+   gc=alpha.c
+  elif [ ${arch} = m68k ]; then
+   gc=m68k.c
+  elif [ ${arch} = sparc ]; then
+   gc=sparc.c
+  else
+   gc=generic.c
+  fi
 else
   echo GC is not supported for this architecture.
   echo Read file ${SE}/sys/gc to try to fix this.
