diff options
Diffstat (limited to 'rpm2header.c')
-rw-r--r-- | rpm2header.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rpm2header.c b/rpm2header.c index e51cb9b..b8c2cb4 100644 --- a/rpm2header.c +++ b/rpm2header.c @@ -6,10 +6,13 @@ #include <fcntl.h> #include <unistd.h> #include <stdint.h> -#include <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> #endif +#include <rpmlib.h> #include <rpm/rpmts.h> const char *basename(const char *f) { |