aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 14:40:58 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 14:40:58 +0000
commit3b774399a7c3777b6ae28d6ec85c2a23ee3e6f1d (patch)
treebb3bd40cf6e998ee1845c0086c10fd48215aa882
parent4b03c52821c38cace41847d4a6754ceceb35fa7f (diff)
downloadperl-URPM-3b774399a7c3777b6ae28d6ec85c2a23ee3e6f1d.tar
perl-URPM-3b774399a7c3777b6ae28d6ec85c2a23ee3e6f1d.tar.gz
perl-URPM-3b774399a7c3777b6ae28d6ec85c2a23ee3e6f1d.tar.bz2
perl-URPM-3b774399a7c3777b6ae28d6ec85c2a23ee3e6f1d.tar.xz
perl-URPM-3b774399a7c3777b6ae28d6ec85c2a23ee3e6f1d.zip
make inclusion of headers conditional
-rw-r--r--rpm5compat.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/rpm5compat.h b/rpm5compat.h
index 2a49264..bfc317d 100644
--- a/rpm5compat.h
+++ b/rpm5compat.h
@@ -1,20 +1,27 @@
-/*
- * Copyright (c) 2008 Per Øyvind Karlsen <peroyvind@mandriva.org>
- *
- * $Id: rpm5compat.h 237744 2008-02-28 17:15:00Z peroyvind $
- *
- */
#define RPM_NULL_TYPE 0
#define RPM_CHAR_TYPE RPM_UINT8_TYPE
#define RPM_INT8_TYPE RPM_UINT8_TYPE
#define RPM_INT16_TYPE RPM_UINT16_TYPE
#define RPM_INT32_TYPE RPM_UINT32_TYPE
+#ifndef H_RPMEVR
+#include <rpm/rpmevr.h>
+#endif
+#ifndef H_RPMIO
#include <rpm/rpmio.h>
+#endif
+#ifndef _H_PKGIO
#include <rpm/pkgio.h>
+#endif
+#ifndef H_RPMCB
#include <rpm/rpmcb.h>
+#endif
+#ifndef H_RPMTS
#include <rpm/rpmts.h>
+#endif
+#ifndef _H_MACRO_
#include <rpm/rpmmacro.h>
+#endif
enum hMagic {
HEADER_MAGIC_NO = 0,