From c79a3fb51718c4286b74edf0f758df9219994844 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 14 Sep 2022 09:07:10 +0200 Subject: [PATCH] wayland-info: Fix build without libdrm wayland-info can optionally use libdrm to provide a description of the dmabuf format modifiers. When not using libdrm however, the build fails because "dev_t" is not defined. The definition of "dev_t" comes from which is included from , which is not included without libdrm support, hence the build failure. Simply include unconditionally to make sure "dev_t" is defined regardless of libdrm support, to fix the build failure. Closes: https://gitlab.freedesktop.org/wayland/wayland-utils/-/issues/6 Signed-off-by: Olivier Fourdan Fixes: 240cb739 - "Add support for linux_dmabuf version 4" Reviewed-by: Simon Ser Reviewed-by: Pekka Paalanen Upstream-Status: Backport [https://gitlab.freedesktop.org/wayland/wayland-utils/-/commit/baa65ba9f62e6a05c32b9202b524158a21f24245] Signed-off-by: Alexander Kanavin --- wayland-info/wayland-info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wayland-info/wayland-info.c b/wayland-info/wayland-info.c index 53cd04b..98ff205 100644 --- a/wayland-info/wayland-info.c +++ b/wayland-info/wayland-info.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #if HAVE_HUMAN_FORMAT_MODIFIER