]> source.dussan.org Git - tigervnc.git/commitdiff
Fix includes for Xorg dri3 module
authorPierre Ossman <ossman@cendio.se>
Thu, 6 Jun 2024 11:29:29 +0000 (13:29 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 20 Jun 2024 12:41:44 +0000 (14:41 +0200)
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.

unix/xserver120.patch

index 2f555eebd1960f2df96e17f2265465defb9e7532..82546dc9e1af910f1aced82f7d489f68d105684f 100644 (file)
@@ -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