xserver: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Sep 1 17:50:35 UTC 2024
glamor/glamor_font.c | 6 ++++++
hw/xnest/Font.c | 2 ++
hw/xnest/Init.c | 2 ++
include/dixfontstr.h | 1 -
4 files changed, 10 insertions(+), 1 deletion(-)
New commits:
commit 646831cda260140eb83f6f3a3f2ad6d69cc9f3a5
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date: Fri Jul 19 13:38:58 2024 +0200
include: dixfontstr.h: drop silent dependency on libxfont2
This header includes libxfont2.h, but the dependency isn't stated anywhere,
causing some drivers to FTBS (when libxont2.h is in non-standard location).
Since this header doesn't seem to need including libxfont2.h at all, just
stop including it, instead of adding yet another dependency to server SDK.
Signed-off-by: Enrico Weigelt, metux IT consult <info at metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1610>
diff --git a/glamor/glamor_font.c b/glamor/glamor_font.c
index c60fa787b..9b26180e9 100644
--- a/glamor/glamor_font.c
+++ b/glamor/glamor_font.c
@@ -20,6 +20,12 @@
* OF THIS SOFTWARE.
*/
+#include <dix-config.h>
+
+#include <stddef.h>
+#include <X11/fonts/fontstruct.h> // libxfont2.h missed to include that
+#include <X11/fonts/libxfont2.h>
+
#include "glamor_priv.h"
#include "glamor_font.h"
#include <dixfontstr.h>
diff --git a/hw/xnest/Font.c b/hw/xnest/Font.c
index 511ab687b..dd9e38619 100644
--- a/hw/xnest/Font.c
+++ b/hw/xnest/Font.c
@@ -16,12 +16,14 @@ is" without express or implied warranty.
#include <xnest-config.h>
#endif
+#include <stddef.h>
#include <X11/X.h>
#include <X11/Xatom.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h>
#include <X11/fonts/font.h>
#include <X11/fonts/fontstruct.h>
+#include <X11/fonts/libxfont2.h>
#include "misc.h"
#include "regionstr.h"
diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c
index 529a4ee5a..a32d5ac90 100644
--- a/hw/xnest/Init.c
+++ b/hw/xnest/Init.c
@@ -16,10 +16,12 @@ is" without express or implied warranty.
#include <xnest-config.h>
#endif
+#include <stddef.h>
#include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h>
#include <X11/fonts/fontstruct.h>
+#include <X11/fonts/libxfont2.h>
#include "dix/screenint_priv.h"
#include "os/ddx_priv.h"
diff --git a/include/dixfontstr.h b/include/dixfontstr.h
index eae1a3b58..dbf991d35 100644
--- a/include/dixfontstr.h
+++ b/include/dixfontstr.h
@@ -27,7 +27,6 @@ SOFTWARE.
#include "servermd.h"
#include "dixfont.h"
#include <X11/fonts/fontstruct.h>
-#include <X11/fonts/libxfont2.h>
#include <X11/Xproto.h> /* for xQueryFontReply */
#define FONTCHARSET(font) (font)
More information about the xorg-commit
mailing list