Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5182a131 authored by Florian Fainelli's avatar Florian Fainelli Committed by Benjamin Herrenschmidt
Browse files

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: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 3631cb83
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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>