aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs8
1 files changed, 8 insertions, 0 deletions
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);
}