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>
这个提交包含在:
Florian Fainelli
2011-08-09 12:24:17 +01:00
提交者 Will Deacon
父节点 322a8b0340
当前提交 0ac8e58f38

查看文件

@@ -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 {