perf tests x86 rdpmc: Add missing headers
authorArnaldo Carvalho de Melo <[email protected]>
Thu, 7 Jul 2016 14:35:50 +0000 (11:35 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 12 Jul 2016 18:19:57 +0000 (15:19 -0300)
Another case of a file using definitions and getting them by chance,
from indirect header inclusion, fix it.

Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/arch/x86/tests/rdpmc.c

index a32d72e91ffa0c915a4cda48563786e2af5c3494..500cf96db9790b66dfc54a726316a83583c4a24a 100644 (file)
@@ -1,12 +1,16 @@
+#include <errno.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <signal.h>
 #include <sys/mman.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 #include <linux/types.h>
 #include "perf.h"
 #include "debug.h"
 #include "tests/tests.h"
 #include "cloexec.h"
+#include "util.h"
 #include "arch-tests.h"
 
 static u64 rdpmc(unsigned int counter)