Index: linux-2.6.33/tools/perf/util/gelf.h ====================================================== --- linux-2.6.33.orig//tools/perf/util/gelf.h 1970-01-01 00:00:00.000000000 +0000 +++ linux-2.6.33/tools/perf/util/gelf.h 2010-03-08 17:04:42.873005267 +0000 @@ -0,0 +1,10 @@ +#ifndef __GELF_NHDR__ +#include +#include + +#if __LIBELF64 +typedef Elf64_Nhdr GElf_Nhdr; +#else +typedef Elf32_Nhdr GElf_Nhdr; +#endif +#endif Index: linux-2.6.33/tools/perf/util/symbol.h ====================================================== --- linux-2.6.33.orig//tools/perf/util/symbol.h 2010-03-08 17:03:27.397264177 +0000 +++ linux-2.6.33/tools/perf/util/symbol.h 2010-03-08 17:05:07.488197613 +0000 @@ -7,6 +7,7 @@ #include #include #include "event.h" +#include "gelf.h" #ifdef HAVE_CPLUS_DEMANGLE extern char *cplus_demangle(const char *, int);