aboutsummaryrefslogtreecommitdiffstats
path: root/parsehdlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'parsehdlist.c')
-rw-r--r--parsehdlist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/parsehdlist.c b/parsehdlist.c
index 32143e4..f460961 100644
--- a/parsehdlist.c
+++ b/parsehdlist.c
@@ -12,10 +12,12 @@
#include <string.h>
#include <ctype.h>
-#include <rpm/rpmlib.h>
-#if defined(RPM_FORMAT_VERSION) && RPM_FORMAT_VERSION >= 5
+#define RPM_VERSION(maj,min,pl) (((maj) << 16) + ((min) << 8) + (pl))
+
+#if RPM_VERSION_CODE >= RPM_VERSION(5,0,0)
#include <rpm/rpm4compat.h>
#else
+#include <rpm/rpmlib.h>
#include <rpm/header.h>
#endif