Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/util/vercmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/vercmp.c')
-rw-r--r--src/util/vercmp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/vercmp.c b/src/util/vercmp.c
index 778ac55a..959dc137 100644
--- a/src/util/vercmp.c
+++ b/src/util/vercmp.c
@@ -23,12 +23,14 @@
#include <stdio.h> /* printf */
#include <string.h> /* strncpy */
-#include <alpm.h>
-
#define BASENAME "vercmp"
#define MAX_LEN 255
+/* forward declaration, comes from vercmp.o in libalpm source that is linked in
+ * directly so we don't have any library deps */
+int alpm_pkg_vercmp(const char *a, const char *b);
+
static void usage()
{
fprintf(stderr, "usage: %s <ver1> <ver2>\n\n", BASENAME);