Skip to content

Commit

Permalink
ARM: fix perf build with uclibc toolchains
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and Will Deacon committed Aug 12, 2011
1 parent 322a8b0 commit 0ac8e58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/perf/arch/arm/util/dwarf-regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
* published by the Free Software Foundation.
*/

#include <stdlib.h>
#ifndef __UCLIBC__
#include <libio.h>
#endif
#include <dwarf-regs.h>

struct pt_regs_dwarfnum {
Expand Down

0 comments on commit 0ac8e58

Please sign in to comment.