aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/graphviz/graphviz/0001-plugin-pango-Include-freetype-headers-explicitly.patch
blob: dd79510560c640342c8a73225cf55ef5c7cd41cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 926d9285f3367ae1bdb9ce1dce95f7de73b3a980 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 6 Aug 2019 12:42:19 -0700
Subject: [PATCH] plugin/pango: Include freetype headers explicitly
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Do not depend on pango automatically adding these headers
Fixes
| gvtextlayout_pango.c:140:10: error: unknown type name ‘FT_Face’
|          FT_Face face;
|          ^~~~~~~

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 plugin/pango/gvtextlayout_pango.c | 4 ++++
 1 file changed, 4 insertions(+)

--- a/plugin/pango/gvtextlayout_pango.c
+++ b/plugin/pango/gvtextlayout_pango.c
@@ -15,6 +15,10 @@
 
 #include <stdlib.h>
 #include <string.h>
+
+#include <ft2build.h>
+#include FT_FREETYPE_H
+
 #include "gvplugin_render.h"
 #include "agxbuf.h"
 #include "utils.h"