diff options
author | Ben Gamari <ben@smart-cactus.org> | 2017-04-04 16:15:32 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-04-04 16:57:01 -0400 |
commit | ff267f37788eb47e1d9da15bf396eccec4297bf6 (patch) | |
tree | 0d9b9e50b2cbd4a79c1a479eaf86df0d13bb657e /rts/linker | |
parent | 7e340c2bbf4a56959bd1e95cdd1cfdb2b7e537c2 (diff) | |
download | haskell-ff267f37788eb47e1d9da15bf396eccec4297bf6.tar.gz |
rts: Fix lingering #ifs
These were missed in D3278.
Diffstat (limited to 'rts/linker')
-rw-r--r-- | rts/linker/Elf.c | 4 | ||||
-rw-r--r-- | rts/linker/SymbolExtras.c | 2 | ||||
-rw-r--r-- | rts/linker/SymbolExtras.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/rts/linker/Elf.c b/rts/linker/Elf.c index 73e34d38a7..77107a73ea 100644 --- a/rts/linker/Elf.c +++ b/rts/linker/Elf.c @@ -1445,7 +1445,7 @@ do_Elf_Rela_relocations ( ObjectCode* oc, char* ehdrC, break; # endif -#if x86_64_HOST_ARCH +#if defined(x86_64_HOST_ARCH) case R_X86_64_64: *(Elf64_Xword *)P = value; break; @@ -1673,7 +1673,7 @@ int ocRunInit_ELF( ObjectCode *oc ) * PowerPC & X86_64 ELF specifics */ -#if NEED_SYMBOL_EXTRAS +#if defined(NEED_SYMBOL_EXTRAS) int ocAllocateSymbolExtras_ELF( ObjectCode *oc ) { diff --git a/rts/linker/SymbolExtras.c b/rts/linker/SymbolExtras.c index 73f219f428..07000331ef 100644 --- a/rts/linker/SymbolExtras.c +++ b/rts/linker/SymbolExtras.c @@ -11,7 +11,7 @@ #include "LinkerInternals.h" -#if NEED_SYMBOL_EXTRAS +#if defined(NEED_SYMBOL_EXTRAS) #if !defined(x86_64_HOST_ARCH) || !defined(mingw32_HOST_OS) #include "RtsUtils.h" diff --git a/rts/linker/SymbolExtras.h b/rts/linker/SymbolExtras.h index 5e2a6d0208..25cb022ab0 100644 --- a/rts/linker/SymbolExtras.h +++ b/rts/linker/SymbolExtras.h @@ -6,7 +6,7 @@ #include "BeginPrivate.h" -#if NEED_SYMBOL_EXTRAS +#if defined(NEED_SYMBOL_EXTRAS) int ocAllocateSymbolExtras( ObjectCode* oc, int count, int first ); |