From 59493977cb8c49d4d6bbdba80c79e678f0fab446 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 18 Jan 2010 14:30:57 +0100 Subject: rpm: fix build with !LFS Signed-off-by: Peter Korsgaard --- package/rpm/rpm-5.2.0-uclibc-no-lfs-fix.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/rpm/rpm-5.2.0-uclibc-no-lfs-fix.patch (limited to 'package/rpm') 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 000000000..00d057973 --- /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 +--- + 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 ++# ifndef __UCLIBC_HAS_LFS__ ++# define stat64 stat ++# endif + #endif + #if defined(hpux) || defined(__hpux) + # define _INCLUDE_POSIX_SOURCE -- cgit v1.2.3-55-g7522