From dc15a201f9cc0e644c469dc1c3518d9a9996a36e Mon Sep 17 00:00:00 2001
From: Martin Blapp <mbr@FreeBSD.org>
Date: Sat, 19 Oct 2002 10:39:26 +0000
Subject: Revive this patch. They got it completly wrong a second time :P If
 you read the code without compile, you'd think that it is correct. But they
 didn't compile it.

---
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 .../files/patch-unzip::source::file_io.c            | 21 +++++++++++++++++++++
 17 files changed, 357 insertions(+)
 create mode 100644 editors/openoffice-1.1-devel/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice-1.1/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice-2.0-devel/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice-3-devel/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice-3/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice-devel/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-1.1-devel/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-1.1/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-2-RC/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-2-devel/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-2.0-devel/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-2.0/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-2/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-3-RC/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-3-devel/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-3/files/patch-unzip::source::file_io.c
 create mode 100644 editors/openoffice.org-vcltesttool/files/patch-unzip::source::file_io.c

diff --git a/editors/openoffice-1.1-devel/files/patch-unzip::source::file_io.c b/editors/openoffice-1.1-devel/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice-1.1-devel/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice-1.1/files/patch-unzip::source::file_io.c b/editors/openoffice-1.1/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice-1.1/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice-2.0-devel/files/patch-unzip::source::file_io.c b/editors/openoffice-2.0-devel/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice-2.0-devel/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice-3-devel/files/patch-unzip::source::file_io.c b/editors/openoffice-3-devel/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice-3-devel/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice-3/files/patch-unzip::source::file_io.c b/editors/openoffice-3/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice-3/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice-devel/files/patch-unzip::source::file_io.c b/editors/openoffice-devel/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice-devel/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-1.1-devel/files/patch-unzip::source::file_io.c b/editors/openoffice.org-1.1-devel/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-1.1-devel/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-1.1/files/patch-unzip::source::file_io.c b/editors/openoffice.org-1.1/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-1.1/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-2-RC/files/patch-unzip::source::file_io.c b/editors/openoffice.org-2-RC/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-2-RC/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-2-devel/files/patch-unzip::source::file_io.c b/editors/openoffice.org-2-devel/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-2-devel/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-2.0-devel/files/patch-unzip::source::file_io.c b/editors/openoffice.org-2.0-devel/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-2.0-devel/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-2.0/files/patch-unzip::source::file_io.c b/editors/openoffice.org-2.0/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-2.0/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-2/files/patch-unzip::source::file_io.c b/editors/openoffice.org-2/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-2/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-3-RC/files/patch-unzip::source::file_io.c b/editors/openoffice.org-3-RC/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-3-RC/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-3-devel/files/patch-unzip::source::file_io.c b/editors/openoffice.org-3-devel/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-3-devel/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-3/files/patch-unzip::source::file_io.c b/editors/openoffice.org-3/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-3/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
diff --git a/editors/openoffice.org-vcltesttool/files/patch-unzip::source::file_io.c b/editors/openoffice.org-vcltesttool/files/patch-unzip::source::file_io.c
new file mode 100644
index 000000000000..2f85a108c185
--- /dev/null
+++ b/editors/openoffice.org-vcltesttool/files/patch-unzip::source::file_io.c
@@ -0,0 +1,21 @@
+--- ../unzip/source/file_io.c.orig	Sat Oct 19 11:58:45 2002
++++ ../unzip/source/file_io.c	Sat Oct 19 12:03:40 2002
+@@ -500,7 +500,7 @@
+ #ifdef MPW
+ 				pCallBack( 0 );
+ #else
+-				#if defined LINUX || defined MACOSX || defined NETBSD
++				#if defined LINUX || defined MACOSX || defined NETBSD || defined FREEBSD
+ 				pCallBack( lseek(outfd, 0, SEEK_CUR) );
+ 				#else
+ 				pCallBack( tell( outfd ) );
+@@ -865,7 +865,9 @@
+ 	static struct timeb tbp;
+ #endif /* !__386BSD__ */
+ #else /* !BSD */
++#if (!defined(NETBSD) && !defined(FREEBSD))
+ 	extern long timezone;
++#endif /* !defined(NETBSD) && !defined(FREEBSD) */
+ #endif /* ?BSD */
+ #endif /* ?AMIGA */
+ 
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0