summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-09-23 18:08:58 -0400
committerKristian Høgsberg <krh@redhat.com>2008-09-23 18:08:58 -0400
commit922da565637876418747ac1f9ac7dbb0b70969c6 (patch)
tree055da007113e546d10e1eb529539bc2291e7c4c0
parent676f0cf4c90365567f5a8cf0fa5c02b23a71b03a (diff)
Work with never librpm versions.
-rw-r--r--src/import-rpmdb.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/import-rpmdb.c b/src/import-rpmdb.c
index cbef6a8..59f41f2 100644
--- a/src/import-rpmdb.c
+++ b/src/import-rpmdb.c
@@ -21,8 +21,11 @@
#include <stddef.h>
#include <string.h>
#include <fcntl.h>
+#include <limits.h>
#include <rpm/rpmlib.h>
#include <rpm/rpmdb.h>
+#define _RPM_4_4_COMPAT 1
+#include <rpm/rpmlegacy.h>
#include "razor.h"
@@ -62,10 +65,10 @@ rpm_to_razor_flags(uint32_t flags)
static void
add_properties(struct razor_importer *importer,
uint32_t type_flags,
- Header h, int_32 name_tag, int_32 version_tag, int_32 flags_tag)
+ Header h, int32_t name_tag, int32_t version_tag, int32_t flags_tag)
{
union rpm_entry names, versions, flags;
- int_32 i, type, count;
+ int32_t i, type, count;
headerGetEntry(h, name_tag, &type, &names.p, &count);
headerGetEntry(h, version_tag, &type, &versions.p, &count);
@@ -84,7 +87,7 @@ razor_set_create_from_rpmdb(void)
struct razor_importer *importer;
rpmdbMatchIterator iter;
Header h;
- int_32 type, count, i;
+ int32_t type, count, i;
union rpm_entry name, epoch, version, release, arch;
union rpm_entry summary, description, url, license;
union rpm_entry basenames, dirnames, dirindexes;