diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-02-29 13:22:34 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-02-29 13:22:34 +0000 |
commit | ab4cd348fe4d18afeea04fb219fa24941773ddc4 (patch) | |
tree | e89bc6953bf876e657b96643896203865bccc331 /parsehdlist.c | |
parent | c2e1fb0dda6f89049e2df517277347351d6ce669 (diff) | |
download | rpmtools-ab4cd348fe4d18afeea04fb219fa24941773ddc4.tar rpmtools-ab4cd348fe4d18afeea04fb219fa24941773ddc4.tar.gz rpmtools-ab4cd348fe4d18afeea04fb219fa24941773ddc4.tar.bz2 rpmtools-ab4cd348fe4d18afeea04fb219fa24941773ddc4.tar.xz rpmtools-ab4cd348fe4d18afeea04fb219fa24941773ddc4.zip |
add support for rpm5.org
Diffstat (limited to 'parsehdlist.c')
-rw-r--r-- | parsehdlist.c | 10 |
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 |