Commit e2d7005f authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix some cpp warnings when building on FreeBSD; patch from Gabor PALI

parent a1969113
......@@ -2953,10 +2953,18 @@ ocResolve_PEi386 ( ObjectCode* oc )
#define Elf_Sym Elf64_Sym
#define Elf_Rel Elf64_Rel
#define Elf_Rela Elf64_Rela
#ifndef ELF_ST_TYPE
#define ELF_ST_TYPE ELF64_ST_TYPE
#endif
#ifndef ELF_ST_BIND
#define ELF_ST_BIND ELF64_ST_BIND
#endif
#ifndef ELF_R_TYPE
#define ELF_R_TYPE ELF64_R_TYPE
#endif
#ifndef ELF_R_SYM
#define ELF_R_SYM ELF64_R_SYM
#endif
#else
#define ELFCLASS ELFCLASS32
#define Elf_Addr Elf32_Addr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment