pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/chmlib Use types defined by <sys/types.h> to def...
details: https://anonhg.NetBSD.org/pkgsrc/rev/38eef93622f5
branches: trunk
changeset: 485714:38eef93622f5
user: jlam <jlam%pkgsrc.org@localhost>
date: Sun Dec 19 04:53:08 2004 +0000
description:
Use types defined by <sys/types.h> to define some chmlib fixed-width
integer types. This allows this to build on amd64, although it now
warns of passing around pointers of incompatible type.
diffstat:
devel/chmlib/distinfo | 4 ++--
devel/chmlib/patches/patch-aa | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r e6f794fb2b22 -r 38eef93622f5 devel/chmlib/distinfo
--- a/devel/chmlib/distinfo Sun Dec 19 04:40:08 2004 +0000
+++ b/devel/chmlib/distinfo Sun Dec 19 04:53:08 2004 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2004/10/30 07:11:18 minskim Exp $
+$NetBSD: distinfo,v 1.4 2004/12/19 04:53:08 jlam Exp $
SHA1 (chmlib-0.35.tbz) = 645bd23e1e8b2e930b971524b1f3561c02ae1609
Size (chmlib-0.35.tbz) = 264006 bytes
-SHA1 (patch-aa) = 39ab703763c7a0aa63e3e90142879a803952fbb4
+SHA1 (patch-aa) = aeabc1b95b7925cd8e39ba6dd484428b7832e85a
diff -r e6f794fb2b22 -r 38eef93622f5 devel/chmlib/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/chmlib/patches/patch-aa Sun Dec 19 04:53:08 2004 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.4 2004/12/19 04:53:08 jlam Exp $
+
+--- src/chm_lib.c.orig 2004-06-28 20:42:38.000000000 -0400
++++ src/chm_lib.c
+@@ -169,9 +169,13 @@ typedef unsigned long UInt32;
+ typedef long long Int64;
+ typedef unsigned long long UInt64;
+ #else
+-
+-/* yielding an error is preferable to yielding incorrect behavior */
+-#error "Please define the sized types for your platform in chm_lib.c"
++typedef unsigned char UChar;
++typedef int16_t Int16;
++typedef u_int16_t UInt16;
++typedef int32_t Int32;
++typedef u_int32_t UInt32;
++typedef int64_t Int64;
++typedef u_int64_t UInt64;
+ #endif
+
+ /* GCC */
Home |
Main Index |
Thread Index |
Old Index