aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2023-11-30 14:11:45 -0300
committerArnaldo Carvalho de Melo <[email protected]>2023-11-30 19:24:59 -0300
commitaf76b2dec0984a079d8497bfa37d29a9b55932e1 (patch)
treee4777d743adcdd55c114c81f7cb386fbd5917d96 /tools/lib/api
parent72a2a0a494ec9aefbca4ad64f46b8e3370809993 (diff)
libapi: Add missing linux/types.h header to get the __u64 type on io.h
There are functions using __u64, so we need to have the linux/types.h header otherwise we'll break when its not included before api/io.h. Fixes: e95770af4c4a280f ("tools api: Add a lightweight buffered reading api") Reviewed-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/api')
-rw-r--r--tools/lib/api/io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/api/io.h b/tools/lib/api/io.h
index a77b74c5fb65..2a7fe9758813 100644
--- a/tools/lib/api/io.h
+++ b/tools/lib/api/io.h
@@ -12,6 +12,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <linux/types.h>
struct io {
/* File descriptor being read/ */