diff options
author | tron <tron@pkgsrc.org> | 2006-09-28 16:21:46 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2006-09-28 16:21:46 +0000 |
commit | 2b496e4fe535fbd852d5bcbf6f25d924a69181e6 (patch) | |
tree | 3c0b74ea00a23dbad98224906f14c7d4b87aa54d /security/pgp2/patches | |
parent | 692acce56c859f2f5f6677f1dc49b52fbaf26a94 (diff) | |
download | pkgsrc-2b496e4fe535fbd852d5bcbf6f25d924a69181e6.tar.gz |
Always use "unsigned int" for a 32 bit unsigned integer which is correct
on all platforms supported by pkgsrc.
This should fix LP64 problems reported in PR pkg/19765 by John Heasley.
Diffstat (limited to 'security/pgp2/patches')
-rw-r--r-- | security/pgp2/patches/patch-af | 18 | ||||
-rw-r--r-- | security/pgp2/patches/patch-ah | 16 |
2 files changed, 30 insertions, 4 deletions
diff --git a/security/pgp2/patches/patch-af b/security/pgp2/patches/patch-af index b293f371659..b1fb440a6a3 100644 --- a/security/pgp2/patches/patch-af +++ b/security/pgp2/patches/patch-af @@ -1,8 +1,8 @@ -$NetBSD: patch-af,v 1.1 2005/12/01 20:19:57 wiz Exp $ +$NetBSD: patch-af,v 1.2 2006/09/28 16:21:46 tron Exp $ ---- usuals.h.orig 1995-09-15 14:18:52.000000000 +0200 -+++ usuals.h -@@ -3,6 +3,13 @@ +--- usuals.h.orig 1995-09-15 13:18:52.000000000 +0100 ++++ usuals.h 2006-09-28 17:16:56.000000000 +0100 +@@ -3,16 +3,19 @@ #ifndef USUALS /* Assures no redefinitions of usual types...*/ #define USUALS @@ -16,3 +16,13 @@ $NetBSD: patch-af,v 1.1 2005/12/01 20:19:57 wiz Exp $ typedef unsigned char boolean; /* values are TRUE or FALSE */ typedef unsigned char byte; /* values are 0-255 */ typedef byte *byteptr; /* pointer to byte */ + typedef char *string; /* pointer to ASCII character string */ + typedef unsigned short word16; /* values are 0-65535 */ +-#ifdef __alpha + typedef unsigned int word32; /* values are 0-4294967295 */ +-#else +-typedef unsigned long word32; /* values are 0-4294967295 */ +-#endif + + #ifndef TRUE + #define FALSE 0 diff --git a/security/pgp2/patches/patch-ah b/security/pgp2/patches/patch-ah new file mode 100644 index 00000000000..e9e77ecc29c --- /dev/null +++ b/security/pgp2/patches/patch-ah @@ -0,0 +1,16 @@ +$NetBSD: patch-ah,v 1.1 2006/09/28 16:21:46 tron Exp $ + +--- md5.h.orig 1994-08-01 16:12:18.000000000 +0100 ++++ md5.h 2006-09-28 17:16:02.000000000 +0100 +@@ -1,11 +1,7 @@ + #ifndef MD5_H + #define MD5_H + +-#ifdef __alpha + typedef unsigned int uint32; +-#else +-typedef unsigned long uint32; +-#endif + + struct MD5Context { + uint32 buf[4]; |