summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authortron <tron>2008-03-31 16:52:13 +0000
committertron <tron>2008-03-31 16:52:13 +0000
commit0321788e7e83592fe49fac224e32f120097e0460 (patch)
treebb9b506bcd98dc3ba36db254a981ddf83cef9be0 /pkgtools/pkg_install
parentffee4942c5f276f688d76ca764ca573ae052164e (diff)
downloadpkgsrc-0321788e7e83592fe49fac224e32f120097e0460.tar.gz
Use a workaround to prevent a linker error on Mac OS X Leopard.
Reviewed by Joerg Sonnenberger and approved by Dieter Baron.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/lib/vulnerabilities-file.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/lib/vulnerabilities-file.c b/pkgtools/pkg_install/files/lib/vulnerabilities-file.c
index fd129bd4436..e0195a41130 100644
--- a/pkgtools/pkg_install/files/lib/vulnerabilities-file.c
+++ b/pkgtools/pkg_install/files/lib/vulnerabilities-file.c
@@ -36,7 +36,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: vulnerabilities-file.c,v 1.2 2008/03/09 22:26:56 joerg Exp $");
+__RCSID("$NetBSD: vulnerabilities-file.c,v 1.3 2008/03/31 16:52:13 tron Exp $");
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
@@ -64,7 +64,11 @@ __RCSID("$NetBSD: vulnerabilities-file.c,v 1.2 2008/03/09 22:26:56 joerg Exp $")
#include "lib.h"
-const char *gpg_cmd;
+/*
+ * We explicitely initialize this to NULL to stop Mac OS X Leopard's linker
+ * from turning this into a common symbol which causes a link failure.
+ */
+const char *gpg_cmd = NULL;
static void
verify_signature(const char *input, size_t input_len)