summaryrefslogtreecommitdiff
path: root/lang/mono/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'lang/mono/patches/patch-aa')
-rw-r--r--lang/mono/patches/patch-aa25
1 files changed, 25 insertions, 0 deletions
diff --git a/lang/mono/patches/patch-aa b/lang/mono/patches/patch-aa
new file mode 100644
index 00000000000..ba570ab04b0
--- /dev/null
+++ b/lang/mono/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD: patch-aa,v 1.8 2004/07/13 14:45:34 recht Exp $
+
+--- libgc/dyn_load.c.orig 2004-05-18 20:42:19.000000000 +0200
++++ libgc/dyn_load.c 2004-07-13 16:35:00.000000000 +0200
+@@ -80,6 +80,11 @@
+ # define l_name lm_name
+ #endif
+
++#if defined(NETBSD)
++# include <machine/elf_machdep.h>
++# define ELFSIZE ARCH_ELFSIZE
++#endif
++
+ #if defined(LINUX) && defined(__ELF__) || defined(SCO_ELF) || \
+ (defined(FREEBSD) && defined(__ELF__)) || defined(DGUX) || \
+ (defined(NETBSD) && defined(__ELF__)) || defined(HURD)
+@@ -91,7 +96,7 @@
+ /* Newer versions of GNU/Linux define this macro. We
+ * define it similarly for any ELF systems that don't. */
+ # ifndef ElfW
+-# ifdef __NetBSD__
++# ifdef NETBSD
+ # if ELFSIZE == 32
+ # define ElfW(type) Elf32_##type
+ # else