39 lines
985 B
Diff
39 lines
985 B
Diff
From 841287dfb7a5992b374aa5326e776cd7d54fc0da Mon Sep 17 00:00:00 2001
|
|
From: Michael Schroeder <mls@suse.de>
|
|
Date: Wed, 5 Jun 2019 16:16:09 +0200
|
|
Subject: [PATCH] rpm-5.2 still had an array index
|
|
|
|
---
|
|
ext/repo_rpmdb_bdb.h | 15 +++++++--------
|
|
1 file changed, 7 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/ext/repo_rpmdb_bdb.h b/ext/repo_rpmdb_bdb.h
|
|
index d0053f71..c680da6b 100644
|
|
--- a/ext/repo_rpmdb_bdb.h
|
|
+++ b/ext/repo_rpmdb_bdb.h
|
|
@@ -21,17 +21,16 @@
|
|
# endif
|
|
#endif
|
|
|
|
-#ifdef RPM5
|
|
-# define RPM_INDEX_SIZE 4 /* just the rpmdbid */
|
|
-#else
|
|
-# define RPM_INDEX_SIZE 8 /* rpmdbid + array index */
|
|
-#endif
|
|
-
|
|
#ifdef RPM5
|
|
# include <rpm/rpmversion.h>
|
|
-# if RPMLIB_VERSION_GE(5,3,_,0,0,_)
|
|
+# if RPMLIB_VERSION < RPMLIB_VERSION_ENCODE(5,3,_,0,0,_)
|
|
+# define RPM_INDEX_SIZE 8 /* rpmdbid + array index */
|
|
+# else
|
|
+# define RPM_INDEX_SIZE 4 /* just the rpmdbid */
|
|
# define RPM5_BIG_ENDIAN_ID
|
|
-# endif
|
|
+#endif
|
|
+#else
|
|
+# define RPM_INDEX_SIZE 8 /* rpmdbid + array index */
|
|
#endif
|
|
|
|
|