commit | 5a0897b4e808cbe3b6aa96260aad107c779f17e1 | [log] [tgz] |
---|---|---|
author | Andrea Fagiani <nobody@example.org> | Tue Jul 08 00:57:58 2014 -0400 |
committer | Avery Pennarun <apenwarr@gmail.com> | Tue Jul 08 01:00:56 2014 -0400 |
tree | 5ca3d43f73d3b213e06b77998e5cba871f89276f | |
parent | c596feeab0edffa359a0e404d36348b0a6e06123 [diff] |
Fix for compiling the 'perf' userspace tool. From here: https://lists.linux-foundation.org/pipermail/bugme-janitors/2010-March/019761.html Conflicts: tools/perf/util/symbol.h Change-Id: I5b574d3720cf1077aedc8098214da754c456e21a
diff --git a/tools/perf/util/gelf.h b/tools/perf/util/gelf.h new file mode 100644 index 0000000..27dfd03 --- /dev/null +++ b/tools/perf/util/gelf.h
@@ -0,0 +1,10 @@ +#ifndef __GELF_NHDR__ +#include <libelf.h> +#include <gelf.h> + +#if __LIBELF64 +typedef Elf64_Nhdr GElf_Nhdr; +#else +typedef Elf32_Nhdr GElf_Nhdr; +#endif +#endif
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 29f8d74..df89af5 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h
@@ -8,6 +8,8 @@ #include <linux/list.h> #include <linux/rbtree.h> #include <stdio.h> +#include "event.h" +#include "gelf.h" #ifdef HAVE_CPLUS_DEMANGLE extern char *cplus_demangle(const char *, int);