2006-03-10 21:29:46 +01:00
|
|
|
$NetBSD: patch-aa,v 1.2 2006/03/10 20:29:46 heinz Exp $
|
2003-12-28 02:07:58 +01:00
|
|
|
|
2006-03-10 21:29:46 +01:00
|
|
|
--- Hashcash.xs.orig 2005-03-03 17:56:51.000000000 +0100
|
2003-12-28 02:07:58 +01:00
|
|
|
+++ Hashcash.xs
|
2006-03-10 21:29:46 +01:00
|
|
|
@@ -4,7 +4,17 @@
|
2003-12-28 02:07:58 +01:00
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
#include <stdlib.h>
|
2006-03-10 21:29:46 +01:00
|
|
|
+#if defined(__NetBSD__)
|
|
|
|
+#include <sys/param.h>
|
|
|
|
+#if __NetBSD_Version__ < 105160000
|
2003-12-28 02:07:58 +01:00
|
|
|
+#include <inttypes.h>
|
2006-03-10 21:29:46 +01:00
|
|
|
+typedef uint32_t uint_fast32_t;
|
|
|
|
+#else
|
|
|
|
#include <stdint.h>
|
|
|
|
+#endif
|
|
|
|
+#else
|
|
|
|
+#include <stdint.h>
|
|
|
|
+#endif
|
2003-12-28 02:07:58 +01:00
|
|
|
|
|
|
|
/* NIST Secure Hash Algorithm */
|
|
|
|
/* heavily modified by Uwe Hollerbach <uh@alumni.caltech edu> */
|