506ce39c41
Fix from Chet Ramey <chet@po.CWRU.Edu>.
21 lines
709 B
Plaintext
21 lines
709 B
Plaintext
$OpenBSD: patch-builtins_enable_def,v 1.3 2002/08/06 16:27:07 naddy Exp $
|
|
--- builtins/enable.def.orig Tue Mar 19 19:54:00 2002
|
|
+++ builtins/enable.def Tue Aug 6 17:49:33 2002
|
|
@@ -314,9 +314,16 @@ dyn_load_builtin (list, flags, filename)
|
|
name = list->word->word;
|
|
|
|
size = strlen (name);
|
|
+#ifdef __ELF__
|
|
struct_name = (char *)xmalloc (size + 8);
|
|
strcpy (struct_name, name);
|
|
strcpy (struct_name + size, "_struct");
|
|
+#else
|
|
+ struct_name = (char *)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)
|