Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / hunspell / hunspell-android.patch
blob1bfbb4beb0f9922268fb6eb15067045ed43dccc8
1 --- misc/hunspell-1.3.2/config.sub 2010-02-23 10:08:48.000000000 +0100
2 +++ misc/build/hunspell-1.3.2/config.sub 2011-09-26 23:31:02.000000000 +0200
3 @@ -118,7 +118,7 @@
4 # Here we must recognize all the valid KERNEL-OS combinations.
5 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
6 case $maybe_os in
7 - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
8 + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
9 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
10 os=-$maybe_os
11 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
12 @@ -1161,7 +1161,7 @@
13 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
14 | -chorusos* | -chorusrdb* \
15 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
16 - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
17 + | -mingw32* | -linux-gnu* | -linux-androideabi* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
18 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
19 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
20 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
21 --- misc/hunspell-1.3.2/src/tools/munch.c
22 +++ misc/build/hunspell-1.3.2/src/tools/munch.c
23 @@ -8,7 +8,7 @@
24 #include <sys/types.h>
25 #include <sys/stat.h>
26 #include <fcntl.h>
27 -#ifdef __linux__
28 +#if defined(__linux__) && !defined(__ANDROID__)
29 #include <error.h>
30 #include <errno.h>
31 #include <sys/mman.h>
32 --- misc/hunspell-1.3.2/src/tools/unmunch.c
33 +++ misc/build/hunspell-1.3.2/src/tools/unmunch.c
34 @@ -8,7 +8,7 @@
35 #include <sys/types.h>
36 #include <sys/stat.h>
37 #include <fcntl.h>
38 -#ifdef __linux__
39 +#if defined(__linux__) && !defined(__ANDROID__)
40 #include <error.h>
41 #include <errno.h>
42 #include <sys/mman.h>