diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-02-23 08:40:15 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2023-03-03 19:17:30 +0100 |
commit | 29d75b092b08d7fb1b5a68ac151d4c005a410bf7 (patch) | |
tree | 2754bc87993e00bbcab4ba7f0eb0c9b5c1547d02 | |
parent | c41ff450285c3ccd2781b306ce996ac4529c3e1a (diff) | |
download | xserver-29d75b092b08d7fb1b5a68ac151d4c005a410bf7.tar.gz |
xwayland: Include <sys/type.h> where needed
With the addition of linux_dmabuf v4, the code adds dev_t in various
places but did not include <sys/types.h>.
While that works on glibc, it may fail to build on other libc
implementations such as musl libc.
Make sure to explicitly include <sys/types.h> where we use dev_t.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1445
Fixes: bddfe190de - Implement linux_dmabuf_feedback event handlers
(cherry picked from commit 24171bb71010a90f1ac323be49121c1503658567)
-rw-r--r-- | hw/xwayland/xwayland-glamor.h | 2 | ||||
-rw-r--r-- | hw/xwayland/xwayland-window.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-glamor.h b/hw/xwayland/xwayland-glamor.h index ed9ec40de..aed65b50f 100644 --- a/hw/xwayland/xwayland-glamor.h +++ b/hw/xwayland/xwayland-glamor.h @@ -28,6 +28,8 @@ #include <xwayland-config.h> +#include <sys/types.h> + #include <wayland-client.h> #include "xwayland-types.h" diff --git a/hw/xwayland/xwayland-window.h b/hw/xwayland/xwayland-window.h index 2e8313f56..c5c42f097 100644 --- a/hw/xwayland/xwayland-window.h +++ b/hw/xwayland/xwayland-window.h @@ -28,8 +28,11 @@ #include <xwayland-config.h> +#include <sys/types.h> + #include <stdio.h> #include <unistd.h> + #include <X11/X.h> #include <dix.h> #include <propertyst.h> |