summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-01-18 13:30:57 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2010-01-18 13:30:57 (GMT)
commit59493977cb8c49d4d6bbdba80c79e678f0fab446 (patch)
treec4179777d8c2f68de9d8744e833a95c7a7787c33
parent03407774b73ef8c36d7932efced408bceed3a76f (diff)
downloadbuildroot-59493977cb8c49d4d6bbdba80c79e678f0fab446.tar.gz
buildroot-59493977cb8c49d4d6bbdba80c79e678f0fab446.tar.bz2
rpm: fix build with !LFS
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/rpm/rpm-5.2.0-uclibc-no-lfs-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/rpm/rpm-5.2.0-uclibc-no-lfs-fix.patch b/package/rpm/rpm-5.2.0-uclibc-no-lfs-fix.patch
new file mode 100644
index 0000000..00d0579
--- /dev/null
+++ b/package/rpm/rpm-5.2.0-uclibc-no-lfs-fix.patch
@@ -0,0 +1,22 @@
+[PATCH] rpm: fix build on uClibc with !LFS
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ rpmio/fts.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+Index: rpm-5.2.0/rpmio/fts.c
+===================================================================
+--- rpm-5.2.0.orig/rpmio/fts.c
++++ rpm-5.2.0/rpmio/fts.c
+@@ -47,6 +47,10 @@ static char sccsid[] = "@(#)fts.c 8.6 (B
+ #else
+ #if defined(__UCLIBC__)
+ # define __fxstat64(_stat_ver, _fd, _sbp) fstat((_fd), (_sbp))
++# include <features.h>
++# ifndef __UCLIBC_HAS_LFS__
++# define stat64 stat
++# endif
+ #endif
+ #if defined(hpux) || defined(__hpux)
+ # define _INCLUDE_POSIX_SOURCE