perf hashmap: Tidy hashmap dependency
[linux-2.6-microblaze.git] / tools / perf / util / bpf-loader.c
index e2052f4..d657594 100644 (file)
 #include "util.h"
 #include "llvm-utils.h"
 #include "c++/clang-c.h"
-#include "hashmap.h"
+#ifdef HAVE_LIBBPF_SUPPORT
+#include <bpf/hashmap.h>
+#else
+#include "util/hashmap.h"
+#endif
 #include "asm/bug.h"
 
 #include <internal/xyarray.h>