aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-18 11:04:14 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-18 12:07:35 +0200
commit0850d30edca55ee96d0b1d658f756163e91b5603 (patch)
treea0f30ef971d88d64dd5642fa302b3f1452d782e6 /URPM.xs
parent6e128db1e5f5a817dfa807e765abe758c6eebd84 (diff)
downloadperl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.tar
perl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.tar.gz
perl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.tar.bz2
perl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.tar.xz
perl-URPM-0850d30edca55ee96d0b1d658f756163e91b5603.zip
restore rpm-4.11.x compatibility
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);
}