Skip to content

Commit a9b6957

Browse files
author
MarcoFalke
committed
Merge #13314: Fix FreeBSD build by including utilstrencodings.h
c865ee1 Fix FreeBSD build by including utilstrencodings.h (Wladimir J. van der Laan) Pull request description: `random.cpp` needs to explicitly include `utilstrencodings.h` to get `ARRAYLEN`. This fixes the FreeBSD build. This was broken in 84f4194 (#13236). Tree-SHA512: bdc2a28411ae217e40697c0315ef5a37cc2f5b6bc7bbde16684fb7343d1c1c620d67777a88e609a2190115edb08b823cfb5d31ed16356a7cb0d00c3b6f877c0e
2 parents 6378eef + c865ee1 commit a9b6957

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/random.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <sys/random.h>
3535
#endif
3636
#ifdef HAVE_SYSCTL_ARND
37+
#include <utilstrencodings.h> // for ARRAYLEN
3738
#include <sys/sysctl.h>
3839
#endif
3940

0 commit comments

Comments
 (0)