openwrt/target/linux/generic/patches-2.6.39/101-perf_arm_uclibc.patch
Florian Fainelli a3e343b722 fix building of perf for arm on uclibc
SVN-Revision: 27514
2011-07-07 09:43:00 +00:00

14 lines
282 B
Diff

--- a/tools/perf/arch/arm/util/dwarf-regs.c
+++ b/tools/perf/arch/arm/util/dwarf-regs.c
@@ -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 {