summaryrefslogtreecommitdiff
path: root/user/enchant/hunspell-build-fix.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 06:30:27 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 17:56:35 -0500
commit99dc7131c241bd1550250db109bd874bd9e899e5 (patch)
treee91fc8e669e9aa310b8da1d804705c39bfc0f88b /user/enchant/hunspell-build-fix.patch
parent97916d382fdfd1014c3f930d222a1fdc4369b101 (diff)
downloadpackages-99dc7131c241bd1550250db109bd874bd9e899e5.tar.gz
packages-99dc7131c241bd1550250db109bd874bd9e899e5.tar.bz2
packages-99dc7131c241bd1550250db109bd874bd9e899e5.tar.xz
packages-99dc7131c241bd1550250db109bd874bd9e899e5.zip
user/enchant: see, Elizafox? Obj-C is important
Diffstat (limited to 'user/enchant/hunspell-build-fix.patch')
-rw-r--r--user/enchant/hunspell-build-fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/user/enchant/hunspell-build-fix.patch b/user/enchant/hunspell-build-fix.patch
new file mode 100644
index 000000000..0ecdb24b3
--- /dev/null
+++ b/user/enchant/hunspell-build-fix.patch
@@ -0,0 +1,14 @@
+diff -ru enchant-1.6.0-orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp
+--- enchant-1.6.0-orig/src/myspell/myspell_checker.cpp 2016-04-18 12:25:00.094614256 +0100
++++ enchant-1.6.0/src/myspell/myspell_checker.cpp 2016-04-18 12:26:09.108569576 +0100
+@@ -148,6 +148,10 @@
+ g_iconv_close(m_translate_out);
+ }
+
++#ifndef MAXWORDLEN
++# define MAXWORDLEN 100
++#endif
++
+ bool
+ MySpellChecker::checkWord(const char *utf8Word, size_t len)
+ {