[Backport to 1.1] wayland-info: Fix build without libdrm
Compare changes
+ 1
− 0
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
gitlab.freedesktop.org will be unavailable for up to a week starting March 16th, due to our ongoing infrastructure move. You can follow our planning tracker at https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/2076
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 <sys/types.h> which is included from <libdrm.h>, which is not included without libdrm support, hence the build failure.
Simply include <sys/types.h> unconditionally to make sure "dev_t" is defined regardless of libdrm support, to fix the build failure.
Closes: #6 (closed)
Signed-off-by: Olivier Fourdan ofourdan@redhat.com
Fixes: 240cb739 - "Add support for linux_dmabuf version 4"
Reviewed-by: Simon Ser contact@emersion.fr
Reviewed-by: Pekka Paalanen pekka.paalanen@collabora.com
(cherry picked from commit baa65ba9)