summaryrefslogtreecommitdiff
path: root/src/xwidget.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-21 19:08:41 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-21 19:10:05 +0800
commit16c785b6212d78c0a79421e249e8036842e39382 (patch)
tree02fa4c0ca3a85420112cb9e9164805eccce73523 /src/xwidget.c
parent7eb53e8a72b0a7ac2ed3ac51902ee410bd7fceb5 (diff)
downloademacs-16c785b6212d78c0a79421e249e8036842e39382.tar.gz
Make xwidgets work on builds that don't use Cairo drawing
* configure.ac: Check for the parts of Cairo that are needed for xwidgets when they are enabled without cairo drawing. * src/xterm.c: * src/xwidget.c: Always include cairo-xlib headers when xwidgets are enabled.
Diffstat (limited to 'src/xwidget.c')
-rw-r--r--src/xwidget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index 69e9d5b64be..fb66a17acd8 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -39,6 +39,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <webkit2/webkit2.h>
#include <JavaScriptCore/JavaScript.h>
#include <cairo.h>
+#include <cairo-xlib.h>
#ifndef HAVE_PGTK
#include <X11/Xlib.h>
#else