summaryrefslogtreecommitdiff
path: root/boehm-gc/dyn_load.c
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2005-02-26 15:40:07 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2005-02-26 15:40:07 +0000
commit7bcf4240fd314130140ebd7168666a8c50d748d1 (patch)
treef76f5c6193f10848e611db6bdea137e5a73ad92a /boehm-gc/dyn_load.c
parent56dea94bcf4bef5f5381553d2b2427ea078b426e (diff)
downloadgcc-7bcf4240fd314130140ebd7168666a8c50d748d1.tar.gz
dyn_load.c: On NetBSD...
* dyn_load.c: On NetBSD, include machine/elf_machdep.h and define ELFSIZE in terms of ARCH_ELFSIZE (back-ported from gc7.0alpha1). From-SVN: r95582
Diffstat (limited to 'boehm-gc/dyn_load.c')
-rw-r--r--boehm-gc/dyn_load.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/boehm-gc/dyn_load.c b/boehm-gc/dyn_load.c
index dfe0a3c87e8..c5139aa80a8 100644
--- a/boehm-gc/dyn_load.c
+++ b/boehm-gc/dyn_load.c
@@ -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)