freebsd-ports/devel/objecthash/files/patch-objecthash.h
Mark Linimon 5f7fb9298e GCC disallows creating arrays of variable size (and const int is a
variable as well). Fix that to fix build on powerpc64.

PR:		231736
Submitted by:	Piotr Kubaj
2018-11-02 15:19:33 +00:00

13 lines
334 B
C

--- objecthash.h.orig 2018-09-25 20:58:11 UTC
+++ objecthash.h
@@ -8,9 +8,7 @@ extern "C" {
typedef unsigned char byte;
-static const int HASH_SIZE = SHA256_DIGEST_LENGTH;
-
-typedef byte hash[HASH_SIZE];
+typedef byte hash[SHA256_DIGEST_LENGTH];
typedef SHA256_CTX hash_ctx;
bool python_json_hash(const char *json, hash h);