Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: fix perf build with uclibc toolchains

libio.h is not provided by uClibc, in order to be able to test the
definition of __UCLIBC__ we need to include stdlib.h, which also
includes stddef.h, providing the definition of 'NULL'.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>

authored by

Florian Fainelli and committed by
Will Deacon
0ac8e58f 322a8b03

+3
+3
tools/perf/arch/arm/util/dwarf-regs.c
··· 8 8 * published by the Free Software Foundation. 9 9 */ 10 10 11 + #include <stdlib.h> 12 + #ifndef __UCLIBC__ 11 13 #include <libio.h> 14 + #endif 12 15 #include <dwarf-regs.h> 13 16 14 17 struct pt_regs_dwarfnum {