zlib: apply zlib-1.2.5-lfs-decls.patch (from Arch)
This commit is contained in:
parent
9294f9fd1f
commit
3b76fe6d4f
4 changed files with 16 additions and 3 deletions
|
@ -1,2 +1,2 @@
|
|||
abi_depends=">=1.2.3"
|
||||
api_depends="${abi_depends}"
|
||||
api_depends=">=1.2.5_2"
|
||||
|
|
13
srcpkgs/zlib/patches/zlib-1.2.5-lfs-decls.patch
Normal file
13
srcpkgs/zlib/patches/zlib-1.2.5-lfs-decls.patch
Normal 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));
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue