Skip to content

Commit

Permalink
perf/powerpc: Fix build for PowerPC 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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Florian Fainelli authored and Benjamin Herrenschmidt committed Nov 25, 2011
1 parent 3631cb8 commit 5182a13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/perf/arch/powerpc/util/dwarf-regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
* 2 of the License, or (at your option) any later version.
*/

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


Expand Down

0 comments on commit 5182a13

Please sign in to comment.