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);