summaryrefslogtreecommitdiff
path: root/dev-python/imaging/files/imaging-1.1.7-ft-header-include.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/imaging/files/imaging-1.1.7-ft-header-include.patch')
-rw-r--r--dev-python/imaging/files/imaging-1.1.7-ft-header-include.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-python/imaging/files/imaging-1.1.7-ft-header-include.patch b/dev-python/imaging/files/imaging-1.1.7-ft-header-include.patch
new file mode 100644
index 00000000..cdc06839
--- /dev/null
+++ b/dev-python/imaging/files/imaging-1.1.7-ft-header-include.patch
@@ -0,0 +1,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 */