[Buildroot] [PATCH 1/1] package/libdisplay-info: include sys/types.h to fix build error

Bernd Kuhls bernd at kuhls.net
Tue Oct 7 20:49:18 UTC 2025


Fixes: https://autobuild.buildroot.org/results/2d72feabdd0c9e1c9aa89e6d683d5f5ae0bb942d/

Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
---
 .../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..f56e41d7b4
--- /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 <bernd at kuhls.net>
+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/-/merge_requests/201
+
+Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
+---
+ 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 <math.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <sys/types.h>
+ 
+ #include "bits.h"
+ #include "cta.h"
+-- 
+2.47.3
+
-- 
2.47.3



More information about the buildroot mailing list