fix building against the newer libdrm
building fails against the newer libdrm (2.4.109 here)
make[3]: Entering directory '/tmp/sbopkg.gDtvH5/xf86-video-qxl-0.1.5/src'
CC qxl_driver.lo
CC qxl_image.lo
CC qxl_surface.lo
CC qxl_surface_ums.lo
CC qxl_ring.lo
CC qxl_mem.lo
CC mspace.lo
CC murmurhash3.lo
CC qxl_cursor.lo
CC qxl_option_helpers.lo
CC qxl_uxa.lo
CC qxl_ums_mode.lo
CC qxl_io.lo
CC dfps.lo
CC qxl_kms.lo
CC qxl_drmmode.lo
In file included from /usr/include/xf86drmMode.h:45,
from qxl_drmmode.h:33,
from qxl_drmmode.c:36:
/usr/include/xorg/xf86Opt.h:44:10: error: two or more data types in declaration specifiers
44 | Bool bool;
| ^~~~
In file included from /usr/include/xorg/xf86str.h:43,
from qxl_drmmode.h:34,
from qxl_drmmode.c:36:
/usr/include/xorg/xf86Opt.h:44:14: warning: declaration does not declare anything
44 | Bool bool;
| ^
make[3]: *** [Makefile:754: qxl_drmmode.lo] Error 1
make[3]: Leaving directory '/tmp/sbopkg.gDtvH5/xf86-video-qxl-0.1.5/src'
make[2]: *** [Makefile:948: all-recursive] Error 1
make[2]: Leaving directory '/tmp/sbopkg.gDtvH5/xf86-video-qxl-0.1.5/src'
make[1]: *** [Makefile:457: all-recursive] Error 1
make[1]: Leaving directory '/tmp/sbopkg.gDtvH5/xf86-video-qxl-0.1.5'
make: *** [Makefile:389: all] Error 2
this happens because libdrm commit e641e2a632d779f638ac2ba983b9fceb20b3fac4 added stdbool.h to the library headers which conflicts with the xorg headers: moving the qxl_drmmode.h inclusion later (like in the attached libdrm.patch) it's enough to fix it.
From: Matteo Bernardini <ponce@slackbuilds.org>
Subject: Change header inclusion order to avoid xorg headers catching stdbool.h
libdrm commit e641e2a632d779f638ac2ba983b9fceb20b3fac4 added
stdbool.h to the library headers which conflicts with xorg headers.
diff -Naur xf86-video-qxl-0.1.5.orig/src/qxl_drmmode.c xf86-video-qxl-0.1.5/src/qxl_drmmode.c
--- xf86-video-qxl-0.1.5.orig/src/qxl_drmmode.c 2015-03-30 16:58:56.000000000 +0200
+++ xf86-video-qxl-0.1.5/src/qxl_drmmode.c 2022-02-10 08:59:13.221017000 +0100
@@ -33,7 +33,6 @@
#ifdef XF86DRM_MODE
#include <sys/ioctl.h>
-#include "qxl_drmmode.h"
#include "X11/Xatom.h"
#include "xf86DDC.h"
/* DPMS */
@@ -47,6 +46,7 @@
#include "qxl.h"
#include "qxl_surface.h"
+#include "qxl_drmmode.h"
static void drmmode_show_cursor (xf86CrtcPtr crtc);