pkgsrc/security/p5-Digest-Hashcash/patches/patch-aa
heinz 9c90aeb360 Updated to version 0.03.
Pkgsrc changes:
  - Rewrote patch-aa to be specific to NetBSD.

Changes since version 0.02:
===========================
 - generate more efficient code with gcc-3.4 and later.
2006-03-10 20:29:46 +00:00

22 lines
504 B
Text

$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> */