mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
perf/powerpc: Fix build for PowerPC 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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
3631cb83dd
commit
5182a131dd
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue