freebsd-ports/textproc/sigil/files/patch-src_minizip_ioapi.h
Boris Samorodov 6d90bd9abf . update to version 0.6.0;
. use two line style headers;
. strip ABI versions from LIB_DEPENDS;
. add licence (GPLv3);
. make use of desktopfileutils for port and package;
. add pkgconfig build dependency;
. remove desktop entry from Makefile (the port has got it's own);
. remove BROKEN at FreeBSD-6.x (not supported anymore).

PR:		ports/173305
Submitted by:	bsam (me)
Reviewed by:	Jonathan Chen <jonc@chen.org.nz> (maintainer)
Feature safe:	yes
2012-11-03 07:47:51 +00:00

17 lines
491 B
C

--- src/minizip/ioapi.h.orig 2012-10-27 20:24:40.000000000 +0400
+++ src/minizip/ioapi.h 2012-11-02 19:04:46.652602414 +0400
@@ -44,7 +44,13 @@
#include <stdlib.h>
#include "zlib.h"
-#if defined(USE_FILE32API)
+#if defined(__FreeBSD__)
+ #define FILE_FUNCTIONS_64B_BY_DEFAULT
+#else
+ #undef FILE_FUNCTIONS_64B_BY_DEFAULT
+#endif
+
+#if defined(USE_FILE32API) || defined(FILE_FUNCTIONS_64B_BY_DEFAULT)
#define fopen64 fopen
#define ftello64 ftell
#define fseeko64 fseek