$OpenBSD: patch-os_dep_c,v 1.5 2003/10/16 04:11:15 todd Exp $
--- os_dep.c.orig	2003-06-13 14:11:00.000000000 -0500
+++ os_dep.c	2003-10-16 02:31:36.000000000 -0500
@@ -391,6 +391,30 @@ static void *tiny_sbrk(ptrdiff_t increme
   }
 #endif
 
+#if defined(OPENBSD)
+  #if 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);
+  }
+  #else
+  ptr_t GC_data_start;
+
+  void GC_init_openbsd_aout()
+  {
+    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
+#endif
+
 # ifdef OS2
 
 # include <stddef.h>
