void-packages/srcpkgs/hunspell/patches/fix-includes.patch

23 lines
529 B
Diff
Raw Normal View History

--- src/tools/munch.c
+++ 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>
--- src/tools/unmunch.c
+++ 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>