pkgsrc/security/pgp2/patches/patch-af
tron 2b496e4fe5 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.
2006-09-28 16:21:46 +00:00

28 lines
835 B
Text

$NetBSD: patch-af,v 1.2 2006/09/28 16:21:46 tron Exp $
--- 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
+#ifdef __NetBSD__
+#include <sys/types.h>
+#if BYTE_ORDER == BIG_ENDIAN
+#define HIGHFIRST
+#endif
+#endif
+
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