summaryrefslogtreecommitdiff
path: root/converters
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
commit1b82d2e324be89add3a002ebb58b0c13da933931 (patch)
treee0c2075bfb1ef250670df0bd3e030e32dbad66fa /converters
parentb6dbcbc3668396bed2f1594589fbbae57e5065ec (diff)
downloadpkgsrc-1b82d2e324be89add3a002ebb58b0c13da933931.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.
Diffstat (limited to 'converters')
-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 -*-*/