zlib: apply zlib-1.2.5-lfs-decls.patch (from Arch)

This commit is contained in:
davehome 2011-10-20 05:04:41 -06:00
parent 9294f9fd1f
commit 3b76fe6d4f
4 changed files with 16 additions and 3 deletions

View File

@ -1,2 +1,2 @@
abi_depends=">=1.2.3"
api_depends="${abi_depends}"
api_depends=">=1.2.5_2"

View File

@ -0,0 +1,13 @@
Index: zlib-1.2.5/zlib.h
===================================================================
--- zlib.h
+++ zlib.h
@@ -1578,7 +1578,7 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF(
# define gzoffset gzoffset64
# define adler32_combine adler32_combine64
# define crc32_combine crc32_combine64
-# ifdef _LARGEFILE64_SOURCE
+# ifndef _LARGEFILE64_SOURCE
ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));

View File

@ -1,7 +1,7 @@
# Template build file for 'zlib'
pkgname=zlib
version=1.2.5
revision=3
revision=4
distfiles="http://www.zlib.net/$pkgname-$version.tar.bz2"
build_style=configure
configure_args="--prefix=/usr --shared"

View File

@ -5,7 +5,7 @@ long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
revision=1
revision=2
Add_dependency run glibc-devel
Add_dependency run zlib