summaryrefslogtreecommitdiff
path: root/dev-python/imaging/files/imaging-1.1.7-ft-header-include.patch
blob: cdc068390387f0985af57d3648c7ad58e25eefa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
https://bugs.gentoo.org/508748

fix building w/freetype-2.5.3

patch by Jungshik Shin <jshin@chromium.org>

--- Imaging-1.1.7/_imagingft.c
+++ Imaging-1.1.7/_imagingft.c
@@ -70,7 +70,11 @@
     const char* message;
 } ft_errors[] =
 
+#if defined(USE_FREETYPE_2_1)
+#include FT_ERRORS_H
+#else
 #include <freetype/fterrors.h>
+#endif
 
 /* -------------------------------------------------------------------- */
 /* font objects */