qt: ensure that target dir exists before installing there
[buildroot-gz.git] / package / rpm / rpm-5.2.0-uclibc-no-lfs-fix.patch
blob00d0579736ebc351aaddbbadf6d696b7417d9ecd
1 [PATCH] rpm: fix build on uClibc with !LFS
3 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
4 ---
5 rpmio/fts.c | 4 ++++
6 1 file changed, 4 insertions(+)
8 Index: rpm-5.2.0/rpmio/fts.c
9 ===================================================================
10 --- rpm-5.2.0.orig/rpmio/fts.c
11 +++ rpm-5.2.0/rpmio/fts.c
12 @@ -47,6 +47,10 @@ static char sccsid[] = "@(#)fts.c 8.6 (B
13 #else
14 #if defined(__UCLIBC__)
15 # define __fxstat64(_stat_ver, _fd, _sbp) fstat((_fd), (_sbp))
16 +# include <features.h>
17 +# ifndef __UCLIBC_HAS_LFS__
18 +# define stat64 stat
19 +# endif
20 #endif
21 #if defined(hpux) || defined(__hpux)
22 # define _INCLUDE_POSIX_SOURCE