summarylogtreecommitdiffstats
path: root/0005-windows-sub-dicts-paths.patch
diff options
context:
space:
mode:
Diffstat (limited to '0005-windows-sub-dicts-paths.patch')
-rw-r--r--0005-windows-sub-dicts-paths.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/0005-windows-sub-dicts-paths.patch b/0005-windows-sub-dicts-paths.patch
new file mode 100644
index 000000000000..6887b2df99d7
--- /dev/null
+++ b/0005-windows-sub-dicts-paths.patch
@@ -0,0 +1,34 @@
+diff -aurN 0004/src/tools/hunspell.cxx 0005/src/tools/hunspell.cxx
+--- 0004/src/tools/hunspell.cxx
++++ 0005/src/tools/hunspell.cxx
+@@ -104,6 +104,12 @@
+ #endif
+ #define PATHSEP ";"
+
++#ifdef __MINGW32__
++#include <sys/types.h>
++#include <sys/stat.h>
++#include <dirent.h>
++#include <unistd.h>
++#endif
+ #include "textparser.hxx"
+ #include "htmlparser.hxx"
+ #include "latexparser.hxx"
+@@ -1812,7 +1818,7 @@
+ return NULL;
+ }
+
+-#ifndef WIN32
++#if !defined(WIN32) || defined(__MINGW32__)
+ int listdicpath(char* dir, int len) {
+ std::string buf;
+ const char* sep = (len == 0) ? "" : DIRSEP;
+@@ -1847,7 +1853,7 @@
+ if (name) {
+ res = exist2(begin, end - begin, name, ext);
+ } else {
+-#ifndef WIN32
++#if !defined(WIN32) || defined(__MINGW32__)
+ listdicpath(begin, end - begin);
+ #endif
+ }