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
This commit is contained in:
Olivier Fourdan 2023-02-23 08:40:15 +01:00 committed by Olivier Fourdan
parent f490622fca
commit 24171bb710
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,8 @@
#include <xwayland-config.h>
#include <sys/types.h>
#include <wayland-client.h>
#include "xwayland-types.h"

View File

@ -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>