diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-08-12 17:17:54 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@neptun.(none)> | 2007-10-12 15:13:50 -0400 |
commit | 4f4c4ee1b79b9102db19ff39f7cb11abddaa43e1 (patch) | |
tree | 9d4caad584ff3ddbb09377c3f513de6233409969 /scripts/mod/modpost.h | |
parent | 782e3b3b3804c38d5130c7f21d7ec7bf6709023f (diff) |
kbuild: Use Elfnn_Half as replacement for Elfnn_Section
The Elfnn_Section is not available on all platforms,
noteworthy are cygwin.
Use the safe replacement _Half.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod/modpost.h')
-rw-r--r-- | scripts/mod/modpost.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h index 4156dd34c5de..0ffed17ec20c 100644 --- a/scripts/mod/modpost.h +++ b/scripts/mod/modpost.h | |||
@@ -17,7 +17,7 @@ | |||
17 | #define Elf_Shdr Elf32_Shdr | 17 | #define Elf_Shdr Elf32_Shdr |
18 | #define Elf_Sym Elf32_Sym | 18 | #define Elf_Sym Elf32_Sym |
19 | #define Elf_Addr Elf32_Addr | 19 | #define Elf_Addr Elf32_Addr |
20 | #define Elf_Section Elf32_Section | 20 | #define Elf_Section Elf32_Half |
21 | #define ELF_ST_BIND ELF32_ST_BIND | 21 | #define ELF_ST_BIND ELF32_ST_BIND |
22 | #define ELF_ST_TYPE ELF32_ST_TYPE | 22 | #define ELF_ST_TYPE ELF32_ST_TYPE |
23 | 23 | ||
@@ -31,7 +31,7 @@ | |||
31 | #define Elf_Shdr Elf64_Shdr | 31 | #define Elf_Shdr Elf64_Shdr |
32 | #define Elf_Sym Elf64_Sym | 32 | #define Elf_Sym Elf64_Sym |
33 | #define Elf_Addr Elf64_Addr | 33 | #define Elf_Addr Elf64_Addr |
34 | #define Elf_Section Elf64_Section | 34 | #define Elf_Section Elf64_Half |
35 | #define ELF_ST_BIND ELF64_ST_BIND | 35 | #define ELF_ST_BIND ELF64_ST_BIND |
36 | #define ELF_ST_TYPE ELF64_ST_TYPE | 36 | #define ELF_ST_TYPE ELF64_ST_TYPE |
37 | 37 | ||