summaryrefslogtreecommitdiff
path: root/fonts/Xft2/patches/patch-xftglyphs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/Xft2/patches/patch-xftglyphs.c')
-rw-r--r--fonts/Xft2/patches/patch-xftglyphs.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/fonts/Xft2/patches/patch-xftglyphs.c b/fonts/Xft2/patches/patch-xftglyphs.c
new file mode 100644
index 00000000000..8f262619e5d
--- /dev/null
+++ b/fonts/Xft2/patches/patch-xftglyphs.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-xftglyphs.c,v 1.1 2014/03/22 21:44:53 spz Exp $
+
+make it deal gracefully with both freetype 2.4.* and 2.5.*
+
+--- xftglyphs.c.orig 2005-03-02 05:32:14.000000000 +0000
++++ xftglyphs.c
+@@ -23,7 +23,8 @@
+ */
+
+ #include "xftint.h"
+-#include <freetype/ftoutln.h>
++#include <ft2build.h>
++#include FT_OUTLINE_H
+
+ static const int filters[3][3] = {
+ /* red */