summaryrefslogtreecommitdiff
path: root/deskutils/recoll/files
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/recoll/files')
-rw-r--r--deskutils/recoll/files/patch-internfile_mh__xslt.cpp20
-rw-r--r--deskutils/recoll/files/patch-utils_miniz.cpp15
2 files changed, 35 insertions, 0 deletions
diff --git a/deskutils/recoll/files/patch-internfile_mh__xslt.cpp b/deskutils/recoll/files/patch-internfile_mh__xslt.cpp
new file mode 100644
index 000000000000..48356e932aa7
--- /dev/null
+++ b/deskutils/recoll/files/patch-internfile_mh__xslt.cpp
@@ -0,0 +1,20 @@
+--- internfile/mh_xslt.cpp.orig 2022-01-14 09:19:06 UTC
++++ internfile/mh_xslt.cpp
+@@ -65,7 +65,7 @@ class FileScanXML : public FileScanDo { (public)
+ xmlDocPtr getDoc() {
+ int ret;
+ if ((ret = xmlParseChunk(ctxt, nullptr, 0, 1))) {
+- xmlError *error = xmlGetLastError();
++ const xmlError *error = xmlGetLastError();
+ LOGERR("FileScanXML: final xmlParseChunk failed with error " <<
+ ret << " error: " <<
+ (error ? error->message :
+@@ -94,7 +94,7 @@ class FileScanXML : public FileScanDo { (public)
+ }
+ int ret;
+ if ((ret = xmlParseChunk(ctxt, buf, cnt, 0))) {
+- xmlError *error = xmlGetLastError();
++ const xmlError *error = xmlGetLastError();
+ LOGERR("FileScanXML: xmlParseChunk failed with error " <<
+ ret << " for [" << buf << "] error " <<
+ (error ? error->message :
diff --git a/deskutils/recoll/files/patch-utils_miniz.cpp b/deskutils/recoll/files/patch-utils_miniz.cpp
new file mode 100644
index 000000000000..b3b352ac394b
--- /dev/null
+++ b/deskutils/recoll/files/patch-utils_miniz.cpp
@@ -0,0 +1,15 @@
+Patch by Matthias Andree <mandree@freebsd.org> 2025-07-15
+to enable using 64-bit file I/O API such as ftello
+that use off_t types.
+
+--- utils/miniz.cpp.orig 2022-01-14 09:19:07 UTC
++++ utils/miniz.cpp
+@@ -3022,7 +3022,7 @@ static FILE *mz_freopen(const char *pPath, const char
+ #define MZ_FFLUSH fflush
+ #define MZ_FREOPEN(p, m, s) freopen64(p, m, s)
+ #define MZ_DELETE_FILE remove
+-#elif defined(__APPLE__)
++#elif defined(__APPLE__) || defined(__FreeBSD__)
+ #ifndef MINIZ_NO_TIME
+ #include <utime.h>
+ #endif