]> TLD Linux GIT Repositories - packages/rpm.git/blob - statver.patch
- fix build with recent glibc
[packages/rpm.git] / statver.patch
1 diff -ur rpm-4.5.orig/rpmio/fts.c rpm-4.5/rpmio/fts.c
2 --- rpm-4.5.orig/rpmio/fts.c    2008-06-10 01:19:25.000000000 +0200
3 +++ rpm-4.5/rpmio/fts.c 2023-12-06 21:01:08.527372354 +0100
4 @@ -80,6 +80,16 @@
5  #   define __fchdir    fchdir
6  #endif
7  
8 +#ifndef _STAT_VER
9 +#if defined (__aarch64__)
10 +#define _STAT_VER 0
11 +#elif defined (__x86_64__)
12 +#define _STAT_VER 1
13 +#else
14 +#define _STAT_VER 3
15 +#endif
16 +#endif
17 +
18  #if !defined(USHRT_MAX)
19  #define        USHRT_MAX       65535
20  #endif