summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-imaging/fix-freetype-includes.patch
blob: 9ecc63a0d67147e3f3088caaaf22e068ea811702 (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
Upstream-Status: Backport
Signed-off-by: Ross Burton <ross.burton@intel.com>

From c6040f618d8f2706a7b46d1cdf37d1a587f9701f Mon Sep 17 00:00:00 2001
From: Andrew Stromnov <stromnov@gmail.com>
Date: Thu, 28 Nov 2013 16:58:43 +0400
Subject: [PATCH] fix compiling with FreeType 2.5.1

---
 _imagingft.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/_imagingft.c b/_imagingft.c
index 47d50bd..f19555b 100644
--- a/_imagingft.c
+++ b/_imagingft.c
@@ -59,7 +59,11 @@ struct {
     const char* message;
 } ft_errors[] =
 
+#if defined(USE_FREETYPE_2_1)
+#include FT_ERRORS_H
+#else
 #include <freetype/fterrors.h>
+#endif
 
 /* -------------------------------------------------------------------- */
 /* font objects */
-- 
1.8.5.1
OpenPOWER on IntegriCloud