diff options
Diffstat (limited to 'tools/perf/util/symbol.h')
| -rw-r--r-- | tools/perf/util/symbol.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index b441b07172b7..8b6ef7fac745 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | #include <byteswap.h> | 12 | #include <byteswap.h> |
| 13 | #include <libgen.h> | 13 | #include <libgen.h> |
| 14 | 14 | ||
| 15 | #ifndef NO_LIBELF_SUPPORT | 15 | #ifdef LIBELF_SUPPORT |
| 16 | #include <libelf.h> | 16 | #include <libelf.h> |
| 17 | #include <gelf.h> | 17 | #include <gelf.h> |
| 18 | #include <elf.h> | 18 | #include <elf.h> |
| @@ -46,10 +46,10 @@ char *strxfrchar(char *s, char from, char to); | |||
| 46 | * libelf 0.8.x and earlier do not support ELF_C_READ_MMAP; | 46 | * libelf 0.8.x and earlier do not support ELF_C_READ_MMAP; |
| 47 | * for newer versions we can use mmap to reduce memory usage: | 47 | * for newer versions we can use mmap to reduce memory usage: |
| 48 | */ | 48 | */ |
| 49 | #ifdef LIBELF_NO_MMAP | 49 | #ifdef LIBELF_MMAP |
| 50 | # define PERF_ELF_C_READ_MMAP ELF_C_READ | ||
| 51 | #else | ||
| 52 | # define PERF_ELF_C_READ_MMAP ELF_C_READ_MMAP | 50 | # define PERF_ELF_C_READ_MMAP ELF_C_READ_MMAP |
| 51 | #else | ||
| 52 | # define PERF_ELF_C_READ_MMAP ELF_C_READ | ||
| 53 | #endif | 53 | #endif |
| 54 | 54 | ||
| 55 | #ifndef DMGL_PARAMS | 55 | #ifndef DMGL_PARAMS |
| @@ -233,7 +233,7 @@ struct symsrc { | |||
| 233 | int fd; | 233 | int fd; |
| 234 | enum dso_binary_type type; | 234 | enum dso_binary_type type; |
| 235 | 235 | ||
| 236 | #ifndef NO_LIBELF_SUPPORT | 236 | #ifdef LIBELF_SUPPORT |
| 237 | Elf *elf; | 237 | Elf *elf; |
| 238 | GElf_Ehdr ehdr; | 238 | GElf_Ehdr ehdr; |
| 239 | 239 | ||
