Re-add patch to fix enable -f functionallity from FreeBSD. Authored by ache:

Fix for 'enable -f'
Submitted by: "Eric L. Hernes" <erich@lodgenet.com>
This commit is contained in:
gene 1998-05-19 17:47:59 +00:00
parent 111231de98
commit f41e8f6be3

View File

@ -0,0 +1,16 @@
--- builtins/enable.def~ Wed Oct 2 13:47:05 1996
+++ builtins/enable.def Tue May 6 14:18:09 1997
@@ -284,9 +284,10 @@
name = list->word->word;
size = strlen (name);
- struct_name = xmalloc (size + 8);
- strcpy (struct_name, name);
- strcpy (struct_name + size, "_struct");
+ struct_name = xmalloc (size + 9);
+ *struct_name = '_';
+ strcpy (struct_name + 1, name);
+ strcpy (struct_name + size + 1, "_struct");
b = (struct builtin *)dlsym (handle, struct_name);
if (b == 0)