aboutsummaryrefslogtreecommitdiffstats
path: root/unix/xserver21.patch
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-07-23 16:06:14 +0200
committerPierre Ossman <ossman@cendio.se>2024-07-23 16:11:04 +0200
commit876cbf0800634b382b0a99e8cd086f588997f9d8 (patch)
treefe2b32fb435382c1698081d3e9cd6e173f12d1bf /unix/xserver21.patch
parent422444acf3a519b75709fb14c02118b75ecbc898 (diff)
downloadtigervnc-876cbf0800634b382b0a99e8cd086f588997f9d8.tar.gz
tigervnc-876cbf0800634b382b0a99e8cd086f588997f9d8.zip
Generate better (fake) modelines
This is what Xwayland does, so let's try to do the same to avoid any incompatibilites with applications.
Diffstat (limited to 'unix/xserver21.patch')
-rw-r--r--unix/xserver21.patch17
1 files changed, 16 insertions, 1 deletions
diff --git a/unix/xserver21.patch b/unix/xserver21.patch
index 7f1e8d4f..c4258adf 100644
--- a/unix/xserver21.patch
+++ b/unix/xserver21.patch
@@ -10,7 +10,7 @@ index fad7b5769..2c167de3d 100644
AC_PROG_LN_S
LT_PREREQ([2.2])
LT_INIT([disable-static win32-dll])
-@@ -1720,6 +1721,14 @@ if test "x$XVFB" = xyes; then
+@@ -1720,6 +1721,19 @@ if test "x$XVFB" = xyes; then
AC_SUBST([XVFB_SYS_LIBS])
fi
@@ -22,6 +22,11 @@ index fad7b5769..2c167de3d 100644
+if test "x$GBM" = xyes; then
+ AC_DEFINE(HAVE_GBM, 1, [Have GBM support])
+fi
++
++PKG_CHECK_MODULES(LIBXCVT, "$LIBXCVT", [XCVT=yes], [XCVT=no])
++if test "x$XCVT" = xyes; then
++ AC_DEFINE(HAVE_LIBXCVT, 1, [Have libxcvt support])
++fi
dnl Xnest DDX
@@ -55,6 +60,16 @@ diff --git a/include/dix-config.h.in b/include/dix-config.h.in
index 382d70609..04a4fd263 100644
--- a/include/dix-config.h.in
+++ b/include/dix-config.h.in
+@@ -63,6 +63,9 @@
+ /* Has libunwind support */
+ #undef HAVE_LIBUNWIND
+
++/* Have libxcvt support */
++#undef HAVE_LIBXCVT
++
+ /* Define to 1 if you have the `cbrt' function. */
+ #undef HAVE_CBRT
+
@@ -77,6 +77,9 @@
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H