From: Arnaldo Carvalho de Melo Date: Thu, 30 Nov 2023 17:11:45 +0000 (-0300) Subject: libapi: Add missing linux/types.h header to get the __u64 type on io.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=af76b2dec0984a079d8497bfa37d29a9b55932e1;p=linux.git 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 Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lore.kernel.org/lkml/ZWjDPL+IzPPsuC3X@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/lib/api/io.h b/tools/lib/api/io.h index a77b74c5fb655..2a7fe97588131 100644 --- a/tools/lib/api/io.h +++ b/tools/lib/api/io.h @@ -12,6 +12,7 @@ #include #include #include +#include struct io { /* File descriptor being read/ */