mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
22 lines
620 B
Plaintext
22 lines
620 B
Plaintext
$NetBSD: patch-ae,v 1.6 2002/11/25 04:18:48 schmonz Exp $
|
|
|
|
--- builtins/enable.def.orig Fri Nov 22 22:16:40 2002
|
|
+++ builtins/enable.def
|
|
@@ -314,9 +314,16 @@
|
|
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 = 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)
|