openbsd-ports/security/rsaref/patches/patch-ab

26 lines
672 B
Plaintext

--- global.h.~1~ Fri Mar 25 12:01:46 1994
+++ global.h Thu Apr 2 00:12:23 1998
@@ -7,6 +7,8 @@
#ifndef _GLOBAL_H_
#define _GLOBAL_H_ 1
+#include <limits.h>
+
/* PROTOTYPES should be set to one if and only if the compiler supports
function argument prototyping.
The following makes PROTOTYPES default to 1 if it has not already been
@@ -23,7 +25,13 @@
typedef unsigned short int UINT2;
/* UINT4 defines a four byte word */
+#if ( UINT_MAX == 0xffffffffU )
+typedef unsigned int UINT4;
+#elif ( ULONG_MAX == 0xffffffffU )
typedef unsigned long int UINT4;
+#else
+# error Unknown size for UINT4
+#endif
#ifndef NULL_PTR
#define NULL_PTR ((POINTER)0)