diff options
author | Kurt Miller <bsdkurt@gmail.com> | 2021-06-12 09:30:56 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-06-12 09:30:56 +0300 |
commit | 9706dbcfdfb4cd18b0622b6ba7428c99d8d7797e (patch) | |
tree | af5de85ffadead5d1af03adeb99f84851c784bed /dyn_load.c | |
parent | 98bc73ba2300b056d7966408e357078c8be0b8ca (diff) | |
download | bdwgc-9706dbcfdfb4cd18b0622b6ba7428c99d8d7797e.tar.gz |
Ensure ELFSIZE is defined in dyn_load.c for OpenBSD (code refactoring)
Issue #347 (bdwgc).
* dyn_load.c [!ElfW && OPENBSD] (ElfW): Define to Elf64_##type only if
ELFSIZE==64; issue compile error if ELFSIZE is neither 32 nor 64.
Diffstat (limited to 'dyn_load.c')
-rw-r--r-- | dyn_load.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -149,8 +149,10 @@ STATIC GC_has_static_roots_func GC_has_static_roots = 0; # elif defined(NETBSD) || defined(OPENBSD) # if ELFSIZE == 32 # define ElfW(type) Elf32_##type -# else +# elif ELFSIZE == 64 # define ElfW(type) Elf64_##type +# else +# error Missing ELFSIZE define # endif # else # if !defined(ELF_CLASS) || ELF_CLASS == ELFCLASS32 |