From 0850d30edca55ee96d0b1d658f756163e91b5603 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 18 Sep 2018 11:04:14 +0200 Subject: restore rpm-4.11.x compatibility --- URPM.xs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'URPM.xs') diff --git a/URPM.xs b/URPM.xs index 0569dfa..eb0dbf2 100644 --- a/URPM.xs +++ b/URPM.xs @@ -119,6 +119,14 @@ typedef struct s_Package* URPM__Package; #define FILTER_MODE_DOC_FILES 1 #define FILTER_MODE_CONF_FILES 2 +#ifdef RPM4_11_0 +#ifndef RPM4_12_0 +#define RPMTAG_RECOMMENDNAME RPMTAG_SUGGESTSNAME +#define RPMTAG_RECOMMENDFLAGS RPMTAG_SUGGESTSFLAGS +#define RPMTAG_RECOMMENDVERSION RPMTAG_SUGGESTSVERSION +#endif +#endif + static ssize_t write_nocheck(int fd, const void *buf, size_t count) { return write(fd, buf, count); } -- cgit v1.2.1