Files
ports/deskutils/recoll/files/patch-utils_miniz.cpp
T
Matthias Andree 91f735e583 deskutils/recoll: fix largefile support in miniz.
recoll ships with a utils/miniz component that doesn't know we
have large file support on FreeBSD.  Use the apple code path for us,
too, so it would use fseeko()/ftello() instead of printing this
warning:

Using fopen, ftello, fseeko, stat() etc. path for file I/O
- this path may not support large files.

Bump PORTREVISION.

loosely related to
PR:		279960
Approved by:	portmgr@ (just-fix-it blanket approval)
MFH:		2025Q3
2025-07-15 21:31:01 +02:00

16 lines
510 B
C++

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