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 e670f35..55ff6ae 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 eb2b519..9b99f48 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"