diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 07:47:35 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 07:55:48 +0000 |
commit | 3f23a4137b928c5ea363afd39af52af49eacb5ce (patch) | |
tree | 1b49ce93c4cef47571c7067d477d2f0a97f949ce /community/rpm/rpm-uclibc.patch | |
parent | 9994bb8b5c328ba14a44119d774fba884c74faaa (diff) | |
download | aports-3f23a4137b928c5ea363afd39af52af49eacb5ce.tar.bz2 aports-3f23a4137b928c5ea363afd39af52af49eacb5ce.tar.xz |
community/rpm: upgrade to 4.12.0.1
Diffstat (limited to 'community/rpm/rpm-uclibc.patch')
-rw-r--r-- | community/rpm/rpm-uclibc.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/rpm/rpm-uclibc.patch b/community/rpm/rpm-uclibc.patch new file mode 100644 index 0000000000..12636f0fc9 --- /dev/null +++ b/community/rpm/rpm-uclibc.patch @@ -0,0 +1,45 @@ +diff -rupN a/misc/fts.c b/misc/fts.c +--- a/misc/fts.c 2012-11-07 13:55:24.000000000 +0100 ++++ b/misc/fts.c 2014-03-06 08:15:37.983514119 +0100 +@@ -42,6 +42,11 @@ static char sccsid[] = "@(#)fts.c 8.6 (B + #include <string.h> + #include <unistd.h> + #else ++#include "system.h" ++#include <stdlib.h> ++#include <string.h> ++#include <errno.h> ++#include "misc/fts.h" + #if defined(hpux) + # define _INCLUDE_POSIX_SOURCE + # define __errno_location() (&errno) +@@ -61,11 +66,10 @@ static char sccsid[] = "@(#)fts.c 8.6 (B + # define _STAT_VER 0 + # define __fxstat64(_stat_ver, _fd, _sbp) fstat64((_fd), (_sbp)) + #endif +-#include "system.h" +-#include <stdlib.h> +-#include <string.h> +-#include <errno.h> +-#include "misc/fts.h" ++#if !defined(__GLIBC__) || defined(__UCLIBC__) ++# define _STAT_VER 0 ++# define __fxstat64(_stat_ver, _fd, _sbp) fstat64((_fd), (_sbp)) ++#endif + # define __set_errno(val) (*__errno_location ()) = (val) + # define __open open + # define __close close +diff -rupN a/misc/fts.h b/misc/fts.h +--- a/misc/fts.h 2012-11-07 13:55:24.000000000 +0100 ++++ b/misc/fts.h 2014-03-06 08:17:10.426850180 +0100 +@@ -61,6 +61,10 @@ + # define _D_EXACT_NAMLEN(d) (strlen((d)->d_name)) + #endif + ++#if !defined(_D_EXACT_NAMLEN) ++# define _D_EXACT_NAMLEN(d) (strlen((d)->d_name)) ++#endif ++ + #endif + + #include <sys/types.h> |