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 | c0cd984d8544ae7484cdc4e943a5ebbdc5294a4a (patch) | |
tree | 496bc9a2a17cda066bb939ca386563445fba4ddd /lang/mono/patches | |
parent | e635858b4fa02b9405db5422a4b0374eec60bfd8 (diff) | |
download | pkgsrc-c0cd984d8544ae7484cdc4e943a5ebbdc5294a4a.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')
-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 |