summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-06-11 21:23:00 +0300
committerTor Lillqvist <tml@iki.fi>2011-06-11 21:28:17 +0300
commit1db5eb0c1c2162daf80e64637f7f3154f734e05c (patch)
treef27c305eafd919119c765e71f67e8d630f8c1408
parentf892f979ce17c70ccff5c802db17f24129628504 (diff)
Add Android patch
-rw-r--r--hunspell/hunspell-android.patch33
-rw-r--r--hunspell/makefile.mk3
2 files changed, 35 insertions, 1 deletions
diff --git a/hunspell/hunspell-android.patch b/hunspell/hunspell-android.patch
new file mode 100644
index 000000000000..6713e40a3542
--- /dev/null
+++ b/hunspell/hunspell-android.patch
@@ -0,0 +1,33 @@
+--- misc/hunspell-1.3.1/config.sub
++++ misc/build/hunspell-1.3.1/config.sub
+@@ -1272,7 +1272,7 @@
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
++ | -udi* | -androideabi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* \
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
+--- misc/hunspell-1.3.1/src/tools/munch.c
++++ misc/build/hunspell-1.3.1/src/tools/munch.c
+@@ -8,7 +8,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+-#ifdef __linux__
++#if defined(__linux__) && !defined(__ANDROID__)
+ #include <error.h>
+ #include <errno.h>
+ #include <sys/mman.h>
+--- misc/hunspell-1.3.1/src/tools/unmunch.c
++++ misc/build/hunspell-1.3.1/src/tools/unmunch.c
+@@ -8,7 +8,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+-#ifdef __linux__
++#if defined(__linux__) && !defined(__ANDROID__)
+ #include <error.h>
+ #include <errno.h>
+ #include <sys/mman.h>
diff --git a/hunspell/makefile.mk b/hunspell/makefile.mk
index 5a6ea0cccafb..a682ba05e4fc 100644
--- a/hunspell/makefile.mk
+++ b/hunspell/makefile.mk
@@ -43,7 +43,8 @@ ADDITIONAL_FILES+=config.h
PATCH_FILES=\
hunspell-static.patch \
hunspell-wntconfig.patch \
- hunspell-solaris.patch
+ hunspell-solaris.patch \
+ hunspell-android.patch
.IF "$(GUI)"=="UNX"