aports/main/hunspell/fix-includes.patch
2014-07-14 09:37:22 +00:00

23 lines
599 B
Diff

--- hunspell-1.3.3.orig/src/tools/munch.c
+++ hunspell-1.3.3/src/tools/munch.c
@@ -9,7 +9,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
-#if defined(__linux__) && !defined(__ANDROID__)
+#if defined(__GLIBC__)
#include <error.h>
#include <errno.h>
#include <sys/mman.h>
--- hunspell-1.3.3.orig/src/tools/unmunch.c
+++ hunspell-1.3.3/src/tools/unmunch.c
@@ -10,7 +10,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#if defined(__linux__) && !defined(__ANDROID__)
+#if defined(__GLIBC__)
#include <error.h>
#include <errno.h>
#include <sys/mman.h>