pkgsrc/security/p5-Digest-Hashcash/patches/patch-aa

23 lines
504 B
Text
Raw Normal View History

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