Commit 86a1751c authored by Jeremy White's avatar Jeremy White

Provide compatibility for Xorg list code with Xorg < 1.12, for RHEL 6 support

parent d261a3ae
......@@ -56,6 +56,16 @@
#include "qxl_drmmode.h"
#if (XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 11, 99, 903, 0))
typedef struct list xorg_list_t;
#define xorg_list_init list_init
#define xorg_list_add list_add
#define xorg_list_del list_del
#define xorg_list_for_each_entry list_for_each_entry
#else
typedef struct xorg_list xorg_list_t;
#endif
#include "compat-api.h"
#define hidden _X_HIDDEN
......@@ -332,7 +342,7 @@ struct _qxl_screen_t
#endif /* XSPICE */
uint32_t deferred_fps;
struct xorg_list ums_bos;
xorg_list_t ums_bos;
struct qxl_bo_funcs *bo_funcs;
Bool kms_enabled;
......
......@@ -338,7 +338,7 @@ struct qxl_kms_bo {
const char *name;
uint32_t size;
int type;
struct xorg_list bos;
xorg_list_t bos;
void *mapping;
qxl_screen_t *qxl;
int refcnt;
......
......@@ -448,7 +448,7 @@ struct qxl_ums_bo {
void *internal_virt_addr;
int refcnt;
qxl_screen_t *qxl;
struct xorg_list bos;
xorg_list_t bos;
};
static struct qxl_bo *qxl_bo_alloc_internal(qxl_screen_t *qxl, int type, int flags, unsigned long size, const char *name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment