pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/py-cjkcodecs gcc 2 does not handle the C99-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/67ab51f452e5
branches:  trunk
changeset: 479447:67ab51f452e5
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Sat Aug 14 17:43:53 2004 +0000

description:
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:

 converters/py-cjkcodecs/distinfo         |   3 ++-
 converters/py-cjkcodecs/patches/patch-aa |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 4045f3d358ec -r 67ab51f452e5 converters/py-cjkcodecs/distinfo
--- a/converters/py-cjkcodecs/distinfo  Sat Aug 14 17:37:42 2004 +0000
+++ b/converters/py-cjkcodecs/distinfo  Sat Aug 14 17:43:53 2004 +0000
@@ -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 -r 4045f3d358ec -r 67ab51f452e5 converters/py-cjkcodecs/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/py-cjkcodecs/patches/patch-aa  Sat Aug 14 17:43:53 2004 +0000
@@ -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 -*-*/



Home | Main Index | Thread Index | Old Index