From c865ee1e73b65fa2e0283e386a9ab35d83f7af99 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 23 May 2018 21:09:03 +0200 Subject: [PATCH] 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. --- src/random.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/random.cpp b/src/random.cpp index 491272d5f..fee6c2d92 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -34,6 +34,7 @@ #include #endif #ifdef HAVE_SYSCTL_ARND +#include // for ARRAYLEN #include #endif