diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-06-06 13:29:29 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-06-20 14:41:44 +0200 |
commit | c30370df0878b823bd520a31567a69763259d5a5 (patch) | |
tree | bfcf3c0b2e755231406d32981a00734db7115cca /unix | |
parent | 52d865c35960f0c1de4811d186dccee27359709c (diff) | |
download | tigervnc-c30370df0878b823bd520a31567a69763259d5a5.tar.gz tigervnc-c30370df0878b823bd520a31567a69763259d5a5.zip |
Fix includes for Xorg dri3 module
It was incorrectly designed to only build properly if built as part of
the "Xorg" server and could fail to build when just "Xvnc" was built.
Backport of upstream commits 0ce93e5 and acc581c.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/xserver120.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/unix/xserver120.patch b/unix/xserver120.patch index 2f555eeb..82546dc9 100644 --- a/unix/xserver120.patch +++ b/unix/xserver120.patch @@ -28,6 +28,77 @@ Index: xserver/configure.ac hw/xnest/Makefile hw/xnest/man/Makefile hw/xwin/Makefile +Index: xserver/dri3/Makefile.am +=================================================================== +--- xserver.orig/dri3/Makefile.am ++++ xserver/dri3/Makefile.am +@@ -1,7 +1,7 @@ + noinst_LTLIBRARIES = libdri3.la + AM_CFLAGS = \ +- -DHAVE_XORG_CONFIG_H \ +- @DIX_CFLAGS@ @XORG_CFLAGS@ ++ @DIX_CFLAGS@ \ ++ @LIBDRM_CFLAGS@ + + libdri3_la_SOURCES = \ + dri3.h \ +Index: xserver/dri3/dri3.c +=================================================================== +--- xserver.orig/dri3/dri3.c ++++ xserver/dri3/dri3.c +@@ -20,10 +20,6 @@ + * OF THIS SOFTWARE. + */ + +-#ifdef HAVE_XORG_CONFIG_H +-#include <xorg-config.h> +-#endif +- + #include "dri3_priv.h" + + #include <drm_fourcc.h> +Index: xserver/dri3/dri3_priv.h +=================================================================== +--- xserver.orig/dri3/dri3_priv.h ++++ xserver/dri3/dri3_priv.h +@@ -23,6 +23,7 @@ + #ifndef _DRI3PRIV_H_ + #define _DRI3PRIV_H_ + ++#include "dix-config.h" + #include <X11/X.h> + #include "scrnintstr.h" + #include "misc.h" +Index: xserver/dri3/dri3_request.c +=================================================================== +--- xserver.orig/dri3/dri3_request.c ++++ xserver/dri3/dri3_request.c +@@ -20,10 +20,6 @@ + * OF THIS SOFTWARE. + */ + +-#ifdef HAVE_XORG_CONFIG_H +-#include <xorg-config.h> +-#endif +- + #include "dri3_priv.h" + #include <syncsrv.h> + #include <unistd.h> +Index: xserver/dri3/dri3_screen.c +=================================================================== +--- xserver.orig/dri3/dri3_screen.c ++++ xserver/dri3/dri3_screen.c +@@ -20,10 +20,6 @@ + * OF THIS SOFTWARE. + */ + +-#ifdef HAVE_XORG_CONFIG_H +-#include <xorg-config.h> +-#endif +- + #include "dri3_priv.h" + #include <syncsdk.h> + #include <misync.h> Index: xserver/hw/Makefile.am =================================================================== --- xserver.orig/hw/Makefile.am |