1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

mail/hashcash: fix build on powerpc*

--- fastmint_library.o ---
fastmint_library.c: In function 'minter_library':
fastmint_library.c:92:17: error: implicit declaration of function 'SHA1_Transform'; did you mean 'SHA1_Xform'? [-Wimplicit-function-declaration]
   92 |                 SHA1_Transform( H, X );
      |                 ^~~~~~~~~~~~~~
      |                 SHA1_Xform
This commit is contained in:
Piotr Kubaj
2026-05-24 20:33:22 +02:00
parent 3850cbc33e
commit 43fcc8b177
+25
View File
@@ -0,0 +1,25 @@
--- sha1.h.orig
+++ sha1.h
@@ -36,8 +36,6 @@
(ctx)->num = 0l \
} while (0)
-#define SHA1_Transform( iv, data ) SHA1_Xform( iv, data )
-
#else
typedef struct {
@@ -60,9 +58,12 @@
#endif
-void SHA1_Xform( word32[ SHA1_DIGEST_WORDS ],
+void SHA1_Xform( word32[ SHA1_DIGEST_WORDS ],
const byte[ SHA1_INPUT_BYTES ] );
+void SHA1_Transform( word32[ SHA1_DIGEST_WORDS ],
+ const byte[ SHA1_INPUT_BYTES ] );
+
#if defined( __cplusplus )
}
#endif