xwayland: avoid Linux-only headers on non-Linux

hw/xwayland/xwayland-glamor-gbm.c:38:10: fatal error: 'linux/dma-buf.h' file not found
   38 | #include <linux/dma-buf.h>
      |          ^~~~~~~~~~~~~~~~~

Fixes: 3df236a3d5 ("xwayland: add functions to import and export dma-buf implicit fences")
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1481>
This commit is contained in:
Jan Beich 2024-04-09 17:45:36 +02:00 committed by Marge Bot
parent c7d56b0e29
commit f0748b05dc

View File

@ -35,9 +35,11 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <xf86drm.h> #include <xf86drm.h>
#include <drm_fourcc.h> #include <drm_fourcc.h>
#if defined(__linux__)
#include <linux/dma-buf.h> #include <linux/dma-buf.h>
#include <linux/sync_file.h> #include <linux/sync_file.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif
#define MESA_EGL_NO_X11_HEADERS #define MESA_EGL_NO_X11_HEADERS
#define EGL_NO_X11 #define EGL_NO_X11