Date: Sat, 21 Sep 2019 16:38:37 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512525 - head/net-p2p/litecoin/files Message-ID: <201909211638.x8LGcb5I095794@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Sat Sep 21 16:38:37 2019 New Revision: 512525 URL: https://svnweb.freebsd.org/changeset/ports/512525 Log: net-p2p/litecoin: fix build on big-endian architectures Include sys/endian.h in src/crypto/scrypt.cpp, big-endian architectures need it: crypto/scrypt.cpp:157:3: error: 'be32enc' was not declared in this scope 157 | be32enc(ivec, (uint32_t)(i + 1)); | ^~~~~~~ crypto/scrypt.cpp: In function 'void scrypt_1024_1_1_256_sp_generic(const char*, char*, char*)': crypto/scrypt.cpp:269:10: error: 'le32dec' was not declared in this scope 269 | X[k] = le32dec(&B[4 * k]); | ^~~~~~~ crypto/scrypt.cpp:285:3: error: 'le32enc' was not declared in this scope 285 | le32enc(&B[4 * k], X[k]); | ^~~~~~~ PR: 240695 Approved by: hsw@bitmark.com (maintainer), linimon (mentor) Added: head/net-p2p/litecoin/files/patch-src_crypto_scrypt.cpp (contents, props changed) Added: head/net-p2p/litecoin/files/patch-src_crypto_scrypt.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/litecoin/files/patch-src_crypto_scrypt.cpp Sat Sep 21 16:38:37 2019 (r512525) @@ -0,0 +1,11 @@ +--- src/crypto/scrypt.cpp.orig 2019-09-19 19:04:21 UTC ++++ src/crypto/scrypt.cpp +@@ -60,6 +60,8 @@ static inline void be32enc(void *pp, uint32_t x) + p[0] = (x >> 24) & 0xff; + } + ++#else ++#include <sys/endian.h> + #endif + typedef struct HMAC_SHA256Context { + SHA256_CTX ictx;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909211638.x8LGcb5I095794>