summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-08-14 17:43:53 +0000
committerkristerw <kristerw@pkgsrc.org>2004-08-14 17:43:53 +0000
commit583468e7fffb864e5d1b90170fe2862ffb799938 (patch)
treee0c2075bfb1ef250670df0bd3e030e32dbad66fa
parent8cde4e59616bfd42a2ad28ec02e2be018786c897 (diff)
downloadpkgsrc-583468e7fffb864e5d1b90170fe2862ffb799938.tar.gz
gcc 2 does not handle the C99-feature of permitting a structure to
end with an incomplete array type. Use the gcc "zero length arrays" extension when compiling with gcc 2.
-rw-r--r--converters/py-cjkcodecs/distinfo3
-rw-r--r--converters/py-cjkcodecs/patches/patch-aa16
2 files changed, 18 insertions, 1 deletions
diff --git a/converters/py-cjkcodecs/distinfo b/converters/py-cjkcodecs/distinfo
index 16361fba950..429ea1a7d36 100644
--- a/converters/py-cjkcodecs/distinfo
+++ b/converters/py-cjkcodecs/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.2 2004/08/07 14:31:57 minskim Exp $
+$NetBSD: distinfo,v 1.3 2004/08/14 17:43:53 kristerw Exp $
SHA1 (cjkcodecs-1.1.tar.gz) = 4ee689fd34c8593a5161ba3f2bc6e08b46c6dfa5
Size (cjkcodecs-1.1.tar.gz) = 787631 bytes
+SHA1 (patch-aa) = d8daf317769a35fd1a5f7265fc7b26f5a781d0ed
diff --git a/converters/py-cjkcodecs/patches/patch-aa b/converters/py-cjkcodecs/patches/patch-aa
new file mode 100644
index 00000000000..a2a31db06e1
--- /dev/null
+++ b/converters/py-cjkcodecs/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1 2004/08/14 17:43:53 kristerw Exp $
+
+--- src/_codecs_iso2022.c.orig Sat Aug 14 19:37:23 2004
++++ src/_codecs_iso2022.c Sat Aug 14 19:39:09 2004
+@@ -141,7 +141,11 @@
+
+ struct iso2022_config {
+ int flags;
++#if defined(__GNUC__) && __GNUC__ <= 2
++ const struct iso2022_designation designations[0];
++#else
+ const struct iso2022_designation designations[]; /* non-ascii desigs */
++#endif
+ };
+
+ /*-*- iso-2022 codec implementation -*-*/