From 1220cf605b108751dae88e02aeadbef90bd83cc9 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 16 Jan 2022 19:45:54 +0800 Subject: [PATCH] Fix the xft build * src/xsettings.h [!HAVE_PGTK]: Include dispextern.h and remove duplicate definition of Display_Info. --- src/xsettings.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/xsettings.h b/src/xsettings.h index 266526df101..ccaa36489d0 100644 --- a/src/xsettings.h +++ b/src/xsettings.h @@ -21,15 +21,14 @@ along with GNU Emacs. If not, see . */ #define XSETTINGS_H #ifndef HAVE_PGTK +#include "dispextern.h" #include #endif struct x_display_info; struct pgtk_display_info; -#ifndef HAVE_PGTK -typedef struct x_display_info Display_Info; -#else +#ifdef HAVE_PGTK typedef struct pgtk_display_info Display_Info; #endif -- 2.39.2