aboutsummaryrefslogtreecommitdiffstats
path: root/parsehdlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'parsehdlist.c')
-rw-r--r--parsehdlist.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/parsehdlist.c b/parsehdlist.c
index eb618d8..bf1162e 100644
--- a/parsehdlist.c
+++ b/parsehdlist.c
@@ -7,12 +7,18 @@
#include <unistd.h>
#include <signal.h>
#include <errno.h>
-#include <rpm/rpmlib.h>
-#include <rpm/header.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <rpm/rpmlib.h>
+#if defined(RPM_FORMAT_VERSION) && RPM_FORMAT_VERSION >= 5
+#include "rpm5compat.h"
+#else
+#include <rpm/header.h>
+#endif
+
#ifndef VERSION_STRING
#define VERSION_STRING "0.0"
#endif