aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.xs
diff options
context:
space:
mode:
Diffstat (limited to 'rpmtools.xs')
-rw-r--r--rpmtools.xs8
1 files changed, 8 insertions, 0 deletions
diff --git a/rpmtools.xs b/rpmtools.xs
index d96af31..89237b2 100644
--- a/rpmtools.xs
+++ b/rpmtools.xs
@@ -32,6 +32,9 @@
#define HDFLAGS_SOURCERPM 0x04000000
+/* duplicate definition for rpmvercmp (not needed on 4.0.3 but needed on 4.0) */
+int rpmvercmp(const char *a, const char *b);
+
char *get_name(Header header, int_32 tag) {
int_32 type, count;
char *name;
@@ -309,6 +312,11 @@ void callback_empty(void) {}
MODULE = rpmtools PACKAGE = rpmtools
+int
+rpmvercmp(a,b)
+ char *a
+ char *b
+
char *
arch()
CODE: