perf arch x86: Add missing stdlib.h to get free() prototype
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 Oct 2022 20:32:19 +0000 (17:32 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 27 Oct 2022 19:37:26 +0000 (16:37 -0300)
It was getting indirectly, out of luck, add it.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/event.c
tools/perf/arch/x86/util/tsc.c

index e670f35475815c9eacc7a05b6fcd308b55dd3cd0..55ff6aec10fddf86ffea04b5fd6c5624678707b3 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/types.h>
 #include <linux/string.h>
 #include <linux/zalloc.h>
+#include <stdlib.h>
 
 #include "../../../util/event.h"
 #include "../../../util/synthetic-events.h"
index eb2b5195bd0208a6f8a2e8030a9c785174eb3413..9b99f48b923cf41188ef395b644e849f2f10605e 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/types.h>
 #include <math.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include "../../../util/debug.h"
 #include "../../../util/tsc.h"