diff options
author | tonio <tonio> | 2005-08-04 16:50:18 +0000 |
---|---|---|
committer | tonio <tonio> | 2005-08-04 16:50:18 +0000 |
commit | 15f5b98d348d6ffaeb9502ab2d4ce6bb5659dab6 (patch) | |
tree | ff3b58336ccd9f1861313b257087823ca8616fe9 /security/heimdal/patches | |
parent | 0023d640d8a497932b67c166730dc8a27f29eb65 (diff) | |
download | pkgsrc-15f5b98d348d6ffaeb9502ab2d4ce6bb5659dab6.tar.gz |
Add patch-aa to make heimdal compile with gcc-4 (default with darwin 8)
This patch is the same as revision 1.3 of
/cvsroot/src/crypto/dist/heimdal/lib/asn1/gen_glue.c by matt@
those cvs log:
Don't emit struct units [] anymore. emit a struct units * const foo and
in the C file initialize that to the static list.
Bump pkgrevision: it changes the binary package on gcc<4 platforms
approved by wiz@
Diffstat (limited to 'security/heimdal/patches')
-rw-r--r-- | security/heimdal/patches/patch-aa | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/security/heimdal/patches/patch-aa b/security/heimdal/patches/patch-aa new file mode 100644 index 00000000000..b1ee7e02f86 --- /dev/null +++ b/security/heimdal/patches/patch-aa @@ -0,0 +1,29 @@ +$NetBSD: patch-aa,v 1.3 2005/08/04 16:50:18 tonio Exp $ + +--- lib/asn1/gen_glue.c.orig 2005-08-04 16:58:58.000000000 +0200 ++++ lib/asn1/gen_glue.c 2005-08-04 17:02:45.000000000 +0200 +@@ -103,11 +103,11 @@ + int tag = -1; + + fprintf (headerfile, +- "extern struct units %s_units[];", ++ "extern struct units * const %s_units;", + s->gen_name); + + fprintf (codefile, +- "struct units %s_units[] = {\n", ++ "struct units %s_units_static[] = {\n", + s->gen_name); + + if(t->members) +@@ -122,6 +122,10 @@ + fprintf (codefile, + "\t{NULL,\t0}\n" + "};\n\n"); ++ ++ fprintf (codefile, ++ "struct units * const %s_units = %s_units_static;\n\n", ++ s->gen_name, s->gen_name); + } + + void |