OSDN Git Service

* dyn_load.c: On NetBSD, include machine/elf_machdep.h and define
[pf3gnuchains/gcc-fork.git] / boehm-gc / dyn_load.c
index dfe0a3c..c5139aa 100644 (file)
 #   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)