diff options
author | recht <recht@pkgsrc.org> | 2004-07-13 14:45:33 +0000 |
---|---|---|
committer | recht <recht@pkgsrc.org> | 2004-07-13 14:45:33 +0000 |
commit | 8abfc0d1618a5fbc5ce2b15f07a3a0efc2d844b5 (patch) | |
tree | 496bc9a2a17cda066bb939ca386563445fba4ddd /lang/mono/patches/patch-aa | |
parent | 762ef6ce87b3f881fbbc1e1c09149af257312b44 (diff) | |
download | pkgsrc-8abfc0d1618a5fbc5ce2b15f07a3a0efc2d844b5.tar.gz |
Follow devel/boehm-gc's lead and also correctly define ELFSIZE for NetBSD
here.
Bump BUILDLINK_DEPENDS to 1.0nb1 for the ELFSIZE fix.
Diffstat (limited to 'lang/mono/patches/patch-aa')
-rw-r--r-- | lang/mono/patches/patch-aa | 25 |
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 |