diff options
author | tron <tron@pkgsrc.org> | 2008-03-31 16:52:13 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2008-03-31 16:52:13 +0000 |
commit | 93f9a70abf3b8ded5d1b36418c14ebf4bb280cc3 (patch) | |
tree | bb9b506bcd98dc3ba36db254a981ddf83cef9be0 /pkgtools/pkg_install | |
parent | ef61654e888e7dfd9c25e48cd20857c9d2b7a3ec (diff) | |
download | pkgsrc-93f9a70abf3b8ded5d1b36418c14ebf4bb280cc3.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.c | 8 |
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) |