diff options
author | thierry <thierry@FreeBSD.org> | 2010-05-01 20:34:56 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2010-05-01 20:34:56 +0800 |
commit | 372d709d3a56c68ee6e79953390e7f8143dba9e6 (patch) | |
tree | 14dc954cfa2bffb413fd4063e7824c72264c2ffb /science | |
parent | 988b674197d5158ec2b9735dd2a18cab568384cd (diff) | |
download | freebsd-ports-gnome-372d709d3a56c68ee6e79953390e7f8143dba9e6.tar.gz freebsd-ports-gnome-372d709d3a56c68ee6e79953390e7f8143dba9e6.tar.zst freebsd-ports-gnome-372d709d3a56c68ee6e79953390e7f8143dba9e6.zip |
Trying to chase Zlib's upgrade in -CURRENT.
Reported by: pointyhat via droso
Seen with: delphij
Diffstat (limited to 'science')
-rw-r--r-- | science/bft/files/patch-src__bft_file.c | 24 |
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, |