diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -37,7 +37,9 @@ static inline void *_free(const void * p) { typedef struct rpmSpec_s * Spec; #else #ifndef RPM_450 -#define rpmtsImportPubkey rpmcliImportPubkey +#define rpmtsImportPubkey rpmcliImportPubkey +#endif +#if !defined(RPM_450) || !defined(RPM_500) #define rpmProblemGetType(p) p->type #define rpmProblemGetPkgNEVR(p) p->pkgNEVR #define rpmProblemGetAltNEVR(p) p->altNEVR @@ -55,7 +57,16 @@ typedef struct rpmSpec_s * Spec; #include <rpm/rpmlib.h> #ifdef RPM_500 +# define _RPMTAG_INTERNAL #include <rpm/rpmtag.h> +/* (peroyvind): A bit ugly, work in progress.. */ +#define int_32 evrFlags +#define uint_16 uint16_t +#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 #else #include <rpm/header.h> #endif @@ -139,7 +150,7 @@ static const void* unused_variable(const void *p) { } static int rpmError_callback_data; -#ifdef RPM_ORG +#if defined(RPM_ORG) || defined(RPM_500) int rpmError_callback() { write_nocheck(rpmError_callback_data, rpmlogMessage(), strlen(rpmlogMessage())); return RPMLOG_DEFAULT; |