libapi: Add missing linux/types.h header to get the __u64 type on io.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 30 Nov 2023 17:11:45 +0000 (14:11 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 30 Nov 2023 22:24:59 +0000 (19:24 -0300)
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 <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZWjDPL+IzPPsuC3X@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/io.h

index a77b74c5fb655a8c7b65c293ba0dd563f34f8569..2a7fe9758813172da7d8972d0b384731f4a91b40 100644 (file)
@@ -12,6 +12,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <linux/types.h>
 
 struct io {
        /* File descriptor being read/ */