$NetBSD: patch-ae,v 1.5 2000/03/30 11:56:32 wiz Exp $

--- builtins/enable.def.orig	Thu Aug  5 13:41:13 1999
+++ builtins/enable.def	Thu Mar 30 13:08:21 2000
@@ -305,9 +305,16 @@
       name = list->word->word;
 
       size = strlen (name);
+#ifdef __ELF__
       struct_name = xmalloc (size + 8);
       strcpy (struct_name, name);
       strcpy (struct_name + size, "_struct");
+#else
+      struct_name = xmalloc (size + 9);
+      *struct_name = '_';
+      strcpy (struct_name + 1, name);
+      strcpy (struct_name + size + 1, "_struct");
+#endif
 
       b = (struct builtin *)dlsym (handle, struct_name);
       if (b == 0)
