aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/scrypt.h
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2021-08-29 17:01:16 +0200
committerGitHub <[email protected]>2021-08-29 17:01:16 +0200
commit18dbe3291b0089fae43b21d824d98ccbedc7ba56 (patch)
treeb7aaedef35e2db7ccaa148f213196ab52ed3a86c /src/crypto/scrypt.h
parentMerge pull request #2483 from bjacquin/dev/beber/db53 (diff)
parentFix FreeBSD scrypt compilation (diff)
downloaddiscoin-18dbe3291b0089fae43b21d824d98ccbedc7ba56.tar.xz
discoin-18dbe3291b0089fae43b21d824d98ccbedc7ba56.zip
Merge pull request #2481 from chromatic/fix-freebsd-scrypt-compilation-gh2475
Fix FreeBSD scrypt compilation
Diffstat (limited to 'src/crypto/scrypt.h')
-rw-r--r--src/crypto/scrypt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/scrypt.h b/src/crypto/scrypt.h
index 5431fb67c..8c1158a32 100644
--- a/src/crypto/scrypt.h
+++ b/src/crypto/scrypt.h
@@ -27,6 +27,7 @@ void
PBKDF2_SHA256(const uint8_t *passwd, size_t passwdlen, const uint8_t *salt,
size_t saltlen, uint64_t c, uint8_t *buf, size_t dkLen);
+#ifndef __FreeBSD__
static inline uint32_t le32dec(const void *pp)
{
const uint8_t *p = (uint8_t const *)pp;
@@ -43,3 +44,4 @@ static inline void le32enc(void *pp, uint32_t x)
p[3] = (x >> 24) & 0xff;
}
#endif
+#endif