summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/powerpc
diff options
context:
space:
mode:
authorCody P Schafer <cody@linux.vnet.ibm.com>2013-03-14 15:27:51 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-03-15 13:05:13 -0300
commit861e10be08c69808065d755d3e3cab5d520a2d32 (patch)
tree64271e813fee991b508125f6603bf6bf1598526b /tools/perf/arch/powerpc
parentd1398ccfec56e54010476efd6a316427d29045a6 (diff)
downloadtalos-op-linux-861e10be08c69808065d755d3e3cab5d520a2d32.tar.gz
talos-op-linux-861e10be08c69808065d755d3e3cab5d520a2d32.zip
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 <cody@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1363300074-26288-1-git-send-email-cody@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/powerpc')
-rw-r--r--tools/perf/arch/powerpc/util/dwarf-regs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/arch/powerpc/util/dwarf-regs.c b/tools/perf/arch/powerpc/util/dwarf-regs.c
index 7cdd61d0e27c..733151cdf46e 100644
--- a/tools/perf/arch/powerpc/util/dwarf-regs.c
+++ b/tools/perf/arch/powerpc/util/dwarf-regs.c
@@ -9,10 +9,7 @@
* 2 of the License, or (at your option) any later version.
*/
-#include <stdlib.h>
-#ifndef __UCLIBC__
-#include <libio.h>
-#endif
+#include <stddef.h>
#include <dwarf-regs.h>
OpenPOWER on IntegriCloud