kumquat-buildroot/package/rpm/0001-uclibc-no-lfs-fix.patch
Peter Korsgaard 298cd8eaa2 package/*: rename patches according to the new policy
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345)

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-02-03 14:52:56 +01:00

23 lines
652 B
Diff

[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