From: Sukadev Bhattiprolu Date: Wed, 31 Oct 2012 18:21:28 +0000 (-0700) Subject: powerpc/perf: Use uapi/unistd.h to fix build error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d7a1ed163a3bb7aa727d3f9335349055aeea110c;p=openwrt%2Fstaging%2Fblogic.git powerpc/perf: Use uapi/unistd.h to fix build error Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool. Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Benjamin Herrenschmidt --- diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 276287783a03..d4960c3834e7 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -26,7 +26,7 @@ void get_term_dimensions(struct winsize *ws); #endif #ifdef __powerpc__ -#include "../../arch/powerpc/include/asm/unistd.h" +#include "../../arch/powerpc/include/uapi/asm/unistd.h" #define rmb() asm volatile ("sync" ::: "memory") #define cpu_relax() asm volatile ("" ::: "memory"); #define CPUINFO_PROC "cpu"