Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2005-04-11 18:12:45 +0400
committerZoltan Varga <vargaz@gmail.com>2005-04-11 18:12:45 +0400
commit82ae7ea35190f9c9e2dd4ee5f468ec448f301900 (patch)
treeb89196c4de7480927a3f6b9fbc5266a11b30aad3 /libgc/dyn_load.c
parentaf6d47c951fce262cf1e6e56605629e7467f71f4 (diff)
2005-04-11 Zoltan Varga <vargaz@freemail.hu>
* include/private/gcconfig.h configure.in os_dep.c dyn_load.c: Applied some freebsd patch from Bill Middleton <flashdict@gmail.com>. svn path=/trunk/mono/; revision=42786
Diffstat (limited to 'libgc/dyn_load.c')
-rw-r--r--libgc/dyn_load.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/libgc/dyn_load.c b/libgc/dyn_load.c
index f1431223c64..7111a874a7b 100644
--- a/libgc/dyn_load.c
+++ b/libgc/dyn_load.c
@@ -96,20 +96,28 @@
/* Newer versions of GNU/Linux define this macro. We
* define it similarly for any ELF systems that don't. */
# ifndef ElfW
-# ifdef NETBSD
-# if ELFSIZE == 32
+# ifdef FREEBSD
+# if __ELF_WORD_SIZE == 32
# define ElfW(type) Elf32_##type
# else
# define ElfW(type) Elf64_##type
# endif
# else
-# if !defined(ELF_CLASS) || ELF_CLASS == ELFCLASS32
-# define ElfW(type) Elf32_##type
+# ifdef NETBSD
+# if ELFSIZE == 32
+# define ElfW(type) Elf32_##type
+# else
+# define ElfW(type) Elf64_##type
+# endif
# else
-# define ElfW(type) Elf64_##type
+# if !defined(ELF_CLASS) || ELF_CLASS == ELFCLASS32
+# define ElfW(type) Elf32_##type
+# else
+# define ElfW(type) Elf64_##type
+# endif
# endif
# endif
-# endif
+# endif
#if defined(SUNOS5DL) && !defined(USE_PROC_FOR_LIBRARIES)