From b5edd3d1051c1eee29b468858af9b1c933dda072 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Tue, 7 Oct 2025 22:49:18 +0200 Subject: [PATCH] package/libdisplay-info: include sys/types.h to fix build error Fixes: https://autobuild.buildroot.org/results/2d72feabdd0c9e1c9aa89e6d683d5f5ae0bb942d/ Signed-off-by: Bernd Kuhls [Julien: update patch Upstream link with commit ID] Signed-off-by: Julien Olivain --- .../0001-cta-include-sys-types.h.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/libdisplay-info/0001-cta-include-sys-types.h.patch diff --git a/package/libdisplay-info/0001-cta-include-sys-types.h.patch b/package/libdisplay-info/0001-cta-include-sys-types.h.patch new file mode 100644 index 0000000000..59049b0a94 --- /dev/null +++ b/package/libdisplay-info/0001-cta-include-sys-types.h.patch @@ -0,0 +1,35 @@ +From e569a92539c96acd2a618729827c8fbf3659d803 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Tue, 7 Oct 2025 22:44:01 +0200 +Subject: [PATCH] cta: include sys/types.h + +Fixes build error with uClibc-based toolchain and gcc 15.2.0 found by +Buildroot autobuilders[1]: + +../cta.c: In function 'parse_vendor_hdmi_block': +../cta.c:168:15: error: unknown type name 'ssize_t'; did you mean 'size_t'? + +[1] https://autobuild.buildroot.org/results/2d72feabdd0c9e1c9aa89e6d683d5f5ae0bb942d/ + +Upstream: https://gitlab.freedesktop.org/emersion/libdisplay-info/-/commit/84e8da3de9a89a95c4305abf6f578feae66dfa69 + +Signed-off-by: Bernd Kuhls +--- + cta.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cta.c b/cta.c +index 12187cc..53edfca 100644 +--- a/cta.c ++++ b/cta.c +@@ -4,6 +4,7 @@ + #include + #include + #include ++#include + + #include "bits.h" + #include "cta.h" +-- +2.47.3 +