]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix build on non-glibc systems due to libio.h absence
authorCody P Schafer <cody@linux.vnet.ibm.com>
Thu, 14 Mar 2013 22:27:51 +0000 (15:27 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Mar 2013 16:05:13 +0000 (13:05 -0300)
commit0ef6aa2c9b644bd857d2c82227d29b33698eecc0
tree64271e813fee991b508125f6603bf6bf1598526b
parentb39492a7efaa5a8e69d9a3ebc1e0aaf00d0bdf71
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>
tools/perf/arch/arm/util/dwarf-regs.c
tools/perf/arch/powerpc/util/dwarf-regs.c
tools/perf/arch/s390/util/dwarf-regs.c
tools/perf/arch/sh/util/dwarf-regs.c
tools/perf/arch/sparc/util/dwarf-regs.c
tools/perf/arch/x86/util/dwarf-regs.c