path: root/tools/perf/arch/sh
diff options
authorCody P Schafer <>2013-03-14 15:27:51 -0700
committerArnaldo Carvalho de Melo <>2013-03-15 13:05:13 -0300
commit861e10be08c69808065d755d3e3cab5d520a2d32 (patch)
tree64271e813fee991b508125f6603bf6bf1598526b /tools/perf/arch/sh
parentd1398ccfec56e54010476efd6a316427d29045a6 (diff)
perf tools: Fix build on non-glibc systems due to libio.h absence
Including libio.h causes build failures on uClibc systems (which lack libio.h). It appears that libio.h was only included to pull in a definition for NULL, so it has been replaced by stddef.h. On powerpc, libio.h was conditionally included, but could be removed completely as it is unneeded. Also, the included of stdlib.h was changed to stddef.h (as again, only NULL is needed). Signed-off-by: Cody P Schafer <> Cc: Ingo Molnar <> Cc: Paul Mackerras <> Cc: Peter Zijlstra <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/arch/sh')
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/sh/util/dwarf-regs.c b/tools/perf/arch/sh/util/dwarf-regs.c
index a11edb007a6c..0d0897f57a10 100644
--- a/tools/perf/arch/sh/util/dwarf-regs.c
+++ b/tools/perf/arch/sh/util/dwarf-regs.c
@@ -19,7 +19,7 @@
-#include <libio.h>
+#include <stddef.h>
#include <dwarf-regs.h>