aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2010-05-01 12:34:56 +0000
committerThierry Thomas <thierry@FreeBSD.org>2010-05-01 12:34:56 +0000
commit8b06721073c86ac07c1d37762ca52721927dc474 (patch)
tree444302b1fbacbf040c6983c03d9a897fa5cef72d /science
parentf4936121f95e76555bebbc39e5b73dc12b0ff91f (diff)
downloadports-8b06721073c86ac07c1d37762ca52721927dc474.tar.gz
ports-8b06721073c86ac07c1d37762ca52721927dc474.zip
Notes
Diffstat (limited to 'science')
-rw-r--r--science/bft/files/patch-src__bft_file.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/science/bft/files/patch-src__bft_file.c b/science/bft/files/patch-src__bft_file.c
new file mode 100644
index 000000000000..c8bb1ab9a613
--- /dev/null
+++ b/science/bft/files/patch-src__bft_file.c
@@ -0,0 +1,24 @@
+--- src/bft_file.c.orig 2008-01-14 19:19:31.000000000 +0100
++++ src/bft_file.c 2010-05-01 11:20:00.000000000 +0200
+@@ -106,6 +106,13 @@
+ We redefine prototypes for gzseek() and gztell() ;
+ This is ugly, but should work with an unmodified Zlib (as of Zlib 1.2.1) */
+
++#if defined (__FreeBSD__)
++# if __FreeBSD_version < 900010
++typedef long bft_z_off_t;
++# else
++typedef off_t bft_z_off_t;
++# endif
++#else
+ #if defined (BFT_SIZEOF_Z_OFF_T)
+ # if (BFT_SIZEOF_Z_OFF_T == BFT_SIZEOF_LONG)
+ typedef long bft_z_off_t;
+@@ -119,6 +126,7 @@
+ #else
+ typedef z_off_t bft_z_off_t;
+ #endif
++#endif
+
+ typedef bft_z_off_t (bft_gzseek_t) (gzFile file,
+ bft_z_off_t offset,