aboutsummaryrefslogtreecommitdiffstats
path: root/rpmeval.c
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-10-17 09:41:26 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-10-17 09:41:26 +0000
commit297f1e61583a14fa4ea430cfcd2936c973ac89b3 (patch)
treeca4badee60cdf0d0008cba7443e963a66f8e4126 /rpmeval.c
parenta869069e7399580a28b9c1eb67d343c3480829c9 (diff)
downloadrpm-setup-297f1e61583a14fa4ea430cfcd2936c973ac89b3.tar
rpm-setup-297f1e61583a14fa4ea430cfcd2936c973ac89b3.tar.gz
rpm-setup-297f1e61583a14fa4ea430cfcd2936c973ac89b3.tar.bz2
rpm-setup-297f1e61583a14fa4ea430cfcd2936c973ac89b3.tar.xz
rpm-setup-297f1e61583a14fa4ea430cfcd2936c973ac89b3.zip
check for existence of rpmlib.h before including it, otherwise
include rpmio.h & rpmtag.h (fixes rpm5 build)
Diffstat (limited to 'rpmeval.c')
-rw-r--r--rpmeval.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpmeval.c b/rpmeval.c
index c377dec..df807df 100644
--- a/rpmeval.c
+++ b/rpmeval.c
@@ -1,6 +1,11 @@
/* $Id$ */
+#ifdef HAVE_RPM_RPMLIB_H
#include <rpm/rpmlib.h>
+#else
+#include <rpm/rpmio.h>
+#include <rpm/rpmtag.h>
+#endif
#include <rpm/rpmmacro.h>
int main(int argc, char **argv)