aboutsummaryrefslogtreecommitdiff
path: root/src/random.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2018-05-23 21:09:03 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2018-05-24 09:51:47 +0200
commitc865ee1e73b65fa2e0283e386a9ab35d83f7af99 (patch)
tree092281d210afb5b14c8489c41c08b140698015bd /src/random.cpp
parent7f4db9a7c3549a36e45d70fc3c159367aa1e99a4 (diff)
downloadbitcoin-c865ee1e73b65fa2e0283e386a9ab35d83f7af99.tar.xz
Fix FreeBSD build by including utilstrencodings.h
`random.cpp` needs to explicitly include `utilstrencodings.h` to get `ARRAYLEN`. This fixes the FreeBSD build. This was broken in 84f41946b9026e8bf7bc44ed848dfb945394b693.
Diffstat (limited to 'src/random.cpp')
-rw-r--r--src/random.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/random.cpp b/src/random.cpp
index 491272d5f3..fee6c2d92a 100644
--- a/src/random.cpp
+++ b/src/random.cpp
@@ -34,6 +34,7 @@
#include <sys/random.h>
#endif
#ifdef HAVE_SYSCTL_ARND
+#include <utilstrencodings.h> // for ARRAYLEN
#include <sys/sysctl.h>
#endif