summaryrefslogtreecommitdiff
path: root/net/irrd/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-07-05 21:39:42 +0000
committerwiz <wiz@pkgsrc.org>2006-07-05 21:39:42 +0000
commitc880453683c83e1f3798a2b7586e3f07458e3e45 (patch)
tree40a598abe069e7ae37b183a42482eba183a9b6ec /net/irrd/patches
parentd248b13c00e965bd9580d29eb39b128b26213b97 (diff)
downloadpkgsrc-c880453683c83e1f3798a2b7586e3f07458e3e45.tar.gz
Fix build with gcc-4.1. Do not have static and global variables
of the same name.
Diffstat (limited to 'net/irrd/patches')
-rw-r--r--net/irrd/patches/patch-ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/irrd/patches/patch-ac b/net/irrd/patches/patch-ac
new file mode 100644
index 00000000000..ceda934bfe2
--- /dev/null
+++ b/net/irrd/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.3 2006/07/05 21:39:42 wiz Exp $
+
+--- programs/irr_rpsl_check/syntax_attrs.c.orig 2004-08-26 14:04:09.000000000 +0000
++++ programs/irr_rpsl_check/syntax_attrs.c
+@@ -19,7 +19,7 @@
+ extern char *attr_name[];
+ extern regex_t re[];
+ extern char *countries[];
+-static const char tmpfntmpl[] = "/var/tmp/irrsyntax.XXXXXX";
++static const char localtmpfntmpl[] = "/var/tmp/irrsyntax.XXXXXX";
+
+ int xx_set_syntax (char *target, char *s) {
+ char *p;
+@@ -713,7 +713,7 @@ char *hexid_check (parse_info_t *o) {
+ }
+
+ /* create a file and put the key certificate into it */
+- strcpy (pgpinfn, tmpfntmpl);
++ strcpy (pgpinfn, localtmpfntmpl);
+ fd = mkstemp (pgpinfn);
+ if ((pgpin = fdopen (fd, "w")) == NULL) {
+ error_msg_queue (o,