]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
rpm-5.2 still had an array index
authorMichael Schroeder <mls@suse.de>
Wed, 5 Jun 2019 14:16:09 +0000 (16:16 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 5 Jun 2019 14:16:09 +0000 (16:16 +0200)
ext/repo_rpmdb_bdb.h

index d0053f7101d8f95fc916eee2795e37e3d0c64c63..c680da6bf9b7984577ba632e10e99479a4300657 100644 (file)
 # 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_LT(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