diff options
author | jlam <jlam@pkgsrc.org> | 2004-12-19 04:53:08 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-12-19 04:53:08 +0000 |
commit | e22649af2a7f3286c45d5299d62fdcdb223e9226 (patch) | |
tree | de9f4ef44d8e5e66608549917d76c9af2671253c /devel | |
parent | 30f017bd7ac9ae604361729b9194401ced9f599a (diff) | |
download | pkgsrc-e22649af2a7f3286c45d5299d62fdcdb223e9226.tar.gz |
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 (limited to 'devel')
-rw-r--r-- | devel/chmlib/distinfo | 4 | ||||
-rw-r--r-- | devel/chmlib/patches/patch-aa | 21 |
2 files changed, 23 insertions, 2 deletions
diff --git a/devel/chmlib/distinfo b/devel/chmlib/distinfo index e55b5a9e129..5f19f345cc2 100644 --- a/devel/chmlib/distinfo +++ b/devel/chmlib/distinfo @@ -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 --git a/devel/chmlib/patches/patch-aa b/devel/chmlib/patches/patch-aa new file mode 100644 index 00000000000..b3116e35b23 --- /dev/null +++ b/devel/chmlib/patches/patch-aa @@ -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 */ |